From 6ee81814ddc5e687ef267c9106602c91dc4dda3b Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 3 Apr 2025 23:22:21 -0400 Subject: [PATCH] Trying new build strategy --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 01f9e94..2c5d19e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,6 +15,7 @@ jobs: - name: Build Docker Container 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 . docker push ${{ github.server_url }}/${{ github.repository }}:$VERSION @@ -36,6 +37,7 @@ jobs: - name: Tag Version 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}} git push -f origin $VERSION