Trying new build strategy
Some checks failed
Build Container / Build Docker Container (push) Failing after 2s
Build Container / Tag Version (push) Failing after 2s

This commit is contained in:
Zakary Timson 2025-04-03 23:25:40 -04:00
parent a4770dc12a
commit 0543a0e68b

View File

@ -11,7 +11,7 @@ jobs:
container: docker container: docker
steps: steps:
- run: | - run: |
clone -b "${{github.ref_name}}" "URL=$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . git clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+')
docker build -t ${{ github.server_url }}/${{ github.repository }}:$VERSION . docker build -t ${{ github.server_url }}/${{ github.repository }}:$VERSION .
docker push ${{ github.server_url }}/${{ github.repository }}:$VERSION docker push ${{ github.server_url }}/${{ github.repository }}:$VERSION
@ -29,7 +29,7 @@ jobs:
container: node container: node
steps: steps:
- run: | - run: |
clone -b "${{github.ref_name}}" "URL=$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . git clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+')
tag -f $VERSION ${{github.sha}} tag -f $VERSION ${{github.sha}}
git push -f origin $VERSION git push -f origin $VERSION