From 2fdac10aa7c3db70659f7ecd28c5916963c0a5dc Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 3 Apr 2025 23:27:46 -0400 Subject: [PATCH] Trying new build strategy --- .github/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 26307ab..db7c43b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,7 +11,7 @@ jobs: container: docker steps: - run: | - git clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+') docker build -t ${{ github.server_url }}/${{ github.repository }}:$VERSION . docker push ${{ github.server_url }}/${{ github.repository }}:$VERSION @@ -29,7 +29,7 @@ jobs: container: node steps: - run: | - git clone -b "${{github.ref_name}}" "URL=$(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:]\.\/\-]+') tag -f $VERSION ${{github.sha}} git push -f origin $VERSION