From a4770dc12a49a4c5ddb50b6987f0d8129e38df4e Mon Sep 17 00:00:00 2001 From: ztimson Date: Thu, 3 Apr 2025 23:25:07 -0400 Subject: [PATCH] Trying new build strategy --- .github/workflows/build.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2c5d19e..e7b5c91 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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}}