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
on:
push:
push:
jobs:
container:
@ -53,15 +53,15 @@ jobs:
docker push $REGISTRY/${{github.repository}}:latest
fi
tag:
name: Git Tag
runs-on: ubuntu-latest
container: alpine/git
steps:
- name: Git Tag
run: |
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:]\.\/\-]+')"
git tag -f $VERSION ${{github.sha}}
git push -f origin $VERSION
tag:
name: Git Tag
runs-on: ubuntu-latest
container: alpine/git
steps:
- name: Git Tag
run: |
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:]\.\/\-]+')"
git tag -f $VERSION ${{github.sha}}
git push -f origin $VERSION