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 2e070a1 commit 0a180e9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
required: true
default: true

#env:
# IMAGE_NAME: ${{ github.repository_owner }}/ncmctl

jobs:
push:
name: Push Docker image to multiple registries
Expand Down Expand Up @@ -68,7 +65,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker images
id: push
id: bp
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v6
with:
Expand All @@ -83,7 +80,7 @@ jobs:
GOPROXY=https://proxy.golang.org
- name: Debug Build and push Docker images
id: push
id: bp
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled == 'true' }}
uses: docker/build-push-action@v6
with:
Expand All @@ -97,9 +94,10 @@ jobs:
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
with:
subject-name: ghcr.io/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
subject-digest: ${{ steps.bp.outputs.digest }}
push-to-registry: true

0 comments on commit 0a180e9

Please sign in to comment.