Skip to content

Commit

Permalink
Add build secrets option
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbot committed Jan 9, 2025
1 parent 10a6cb5 commit 792fcb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-and-push-multiarch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
required: false
type: string
default: ${{ github.sha }}
buildSecrets:
required: false
type: string
outputs:
imageTag:
description: "The image tag for the built image"
Expand Down Expand Up @@ -91,6 +94,7 @@ jobs:
outputs: type=image,name=ghcr.io/${{ github.repository_owner }}/govuk/${{ inputs.imageName }},push-by-digest=true,name-canonical=true,push=true
cache-from: type=gha,scope=build-${{ inputs.imageName }}-${{ matrix.arch }}
cache-to: type=gha,scope=build-${{ inputs.imageName }}-${{ matrix.arch }},mode=max
secrets: ${{ inputs.buildSecrets }}

- id: export-digests
env:
Expand Down

0 comments on commit 792fcb4

Please sign in to comment.