From 908a2ba4e6fcb2715f047fbe0fe66f36685e75b1 Mon Sep 17 00:00:00 2001 From: chaunsin <906591446@qq.com> Date: Thu, 21 Nov 2024 17:52:22 +0800 Subject: [PATCH] ci: update --- .github/workflows/deploy_image.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy_image.yml b/.github/workflows/deploy_image.yml index 354a00c..612836f 100644 --- a/.github/workflows/deploy_image.yml +++ b/.github/workflows/deploy_image.yml @@ -68,21 +68,6 @@ jobs: id: bp if: startsWith(github.ref, 'refs/tags/v') uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - build-args: | - BUILD_TIME=${{ env.BUILD_TIME }} - VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') - COMMIT_HASH=$(echo "${{ github.sha }}" | cut -c 1-7) - GOPROXY=https://proxy.golang.org - - - name: Debug Build and push Docker images - id: bp - if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled == 'true' }} - uses: docker/build-push-action@v6 with: context: . push: true @@ -94,6 +79,21 @@ jobs: COMMIT_HASH=${{ env.COMMIT_HASH}} GOPROXY=https://proxy.golang.org +# - name: Debug Build and push Docker images +# id: bp +# if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled == 'true' }} +# uses: docker/build-push-action@v6 +# with: +# context: . +# push: true +# tags: ${{ steps.meta.outputs.tags }} +# labels: ${{ steps.meta.outputs.labels }} +# build-args: | +# BUILD_TIME=${{ env.BUILD_TIME }} +# VERSION=${{ env.VERSION }} +# COMMIT_HASH=${{ env.COMMIT_HASH}} +# GOPROXY=https://proxy.golang.org + # https://github.com/actions/attest-build-provenance - name: Generate artifact attestation uses: actions/attest-build-provenance@v1