Build automation updates
This commit is contained in:
parent
5ffda6ec6a
commit
27a6f7162d
31
.gitea/workflows/check-build.yml
Normal file
31
.gitea/workflows/check-build.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Name: Container Build Check
|
||||||
|
run-name: ${{ gitea.actor }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
- "!master"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Plan:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: List Contents
|
||||||
|
id: ls
|
||||||
|
run: ls -al
|
||||||
|
|
||||||
|
- name: Login to repo
|
||||||
|
id: login
|
||||||
|
run: echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
id: Build Verify
|
||||||
|
run: docker build -t git.hamik.net/paradizelost/visubnet:latest .
|
31
.gitea/workflows/push-build.yml
Normal file
31
.gitea/workflows/push-build.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Name: Container Build Push
|
||||||
|
run-name: ${{ gitea.actor }}
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Plan:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
#
|
||||||
|
- name: List Contents
|
||||||
|
id: ls
|
||||||
|
run: ls -al
|
||||||
|
|
||||||
|
- name: Login to repo
|
||||||
|
id: login
|
||||||
|
run: echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin
|
||||||
|
- name: Build
|
||||||
|
id: Build Verify
|
||||||
|
run: docker build -t git.hamik.net/paradizelost/visubnet:latest .
|
||||||
|
|
||||||
|
- name: Push to Repository
|
||||||
|
id: push
|
||||||
|
run: docker push git.hamik.net/paradizelost/visubnet
|
@ -1,34 +0,0 @@
|
|||||||
Name: Terraform Processing
|
|
||||||
run-name: ${{ gitea.actor }}
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "**"
|
|
||||||
# - "!master"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
Plan:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
#
|
|
||||||
- name: List Contents
|
|
||||||
id: ls
|
|
||||||
run: ls -al
|
|
||||||
|
|
||||||
#- name: Set git remote if not already set
|
|
||||||
# run: git remote -v | grep -w gitea || git remote add gitea "./gitea/git/repositories/${GITHUB_REPOSITORY,,}.git"
|
|
||||||
|
|
||||||
#- name: Install Docker
|
|
||||||
# run: curl -fsSL https://get.docker.com | sh
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
run: |
|
|
||||||
echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin
|
|
||||||
docker build -t git.hamik.net/paradizelost/visubnet:latest .
|
|
||||||
docker push git.hamik.net/paradizelost/visubnet
|
|
Loading…
x
Reference in New Issue
Block a user