Update workflows.
build_develop / build (push) Successful in 35s

This commit is contained in:
2025-03-19 09:35:21 -04:00
parent 2e3b8c86da
commit 3d113a06d4
3 changed files with 39 additions and 7 deletions
+10 -4
View File
@@ -2,14 +2,18 @@ name: build_develop
on:
push:
branches: [main]
branches:
- "*"
- "!main"
paths-ignore:
- "README.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Docker
@@ -20,7 +24,9 @@ jobs:
registry: gitea.cheezers.org
username: imcompiling
password: ${{ secrets.PASSWORD }}
- name: set env
run: echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
- name: Build Docker Image
run: docker build -t gitea.cheezers.org/imcompiling/agon:develop .
run: docker build -t gitea.cheezers.org/imcompiling/agon:${{env.GIT_BRANCH}} .
- name: Push Docker Image
run: docker push gitea.cheezers.org/imcompiling/agon:develop
run: docker push gitea.cheezers.org/imcompiling/agon:${{env.GIT_BRANCH}}