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

This commit is contained in:
Zakary Timson 2025-04-03 23:25:07 -04:00
parent 6ee81814dd
commit a4770dc12a

View File

@ -10,11 +10,7 @@ jobs:
runs-on: ubuntu-latest
container: docker
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Docker Container
run: |
- run: |
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:]\.\/\-]+')
docker build -t ${{ github.server_url }}/${{ github.repository }}:$VERSION .
@ -32,11 +28,7 @@ jobs:
runs-on: ubuntu-latest
container: node
steps:
- name: Clone Repository
uses: ztimson/actions/clone@develop
- name: Tag Version
run: |
- run: |
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:]\.\/\-]+')
tag -f $VERSION ${{github.sha}}