Build automation updates

This commit is contained in:
Dan Hamik 2024-11-25 08:45:23 -06:00
parent 5ffda6ec6a
commit 27a6f7162d
3 changed files with 62 additions and 34 deletions

View 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 .

View 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

View File

@ -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