Fixed syntax
Some checks failed
Build Container / Docker Hub (push) Failing after 21s
Build Container / Git Tag (push) Successful in 21s
Build Container / Build Container (push) Successful in 26s

This commit is contained in:
Zakary Timson 2025-04-04 00:01:33 -04:00
parent 2029688bf4
commit 3d0c5a190f

View File

@ -2,7 +2,7 @@ name: Build Container
run-name: Build Container run-name: Build Container
on: on:
push: push:
jobs: jobs:
container: container:
@ -53,15 +53,15 @@ jobs:
docker push $REGISTRY/${{github.repository}}:latest docker push $REGISTRY/${{github.repository}}:latest
fi fi
tag: tag:
name: Git Tag name: Git Tag
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: alpine/git container: alpine/git
steps: steps:
- name: Git Tag - name: Git Tag
run: | run: |
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
VERSION="$(cat Dockerfile | grep "ARG CADDY_VERSION" | grep -Eo '=.+' | grep -Eo '[[:alnum:]\.\/\-]+')" VERSION="$(cat Dockerfile | grep "ARG CADDY_VERSION" | grep -Eo '=.+' | grep -Eo '[[:alnum:]\.\/\-]+')"
git tag -f $VERSION ${{github.sha}} git tag -f $VERSION ${{github.sha}}
git push -f origin $VERSION git push -f origin $VERSION