Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
chaunsin committed Nov 21, 2024
1 parent 0a180e9 commit 908a2ba
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/deploy_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 908a2ba

Please sign in to comment.