Skip to content

Commit

Permalink
feat: add ability to turn off provenance attestations
Browse files Browse the repository at this point in the history
Lambda image functions don't support the Image Index artifact that's created when provenance set to true (which is buildx default). Need the ability to turn this off.
  • Loading branch information
CallumNZ committed May 1, 2024
1 parent 6add3d2 commit 6aedaa3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/reusable-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ on:
e.g: |
THING1=a
THING2=b
provenance:
required: false
type: boolean
default: true
description: |
set to false to not create provenance attestations for the build process.
platforms:
required: false
type: string
Expand Down Expand Up @@ -173,6 +179,7 @@ jobs:
REGISTRY_GHCR_USERNAME_OVERRIDE: ${{ inputs.registryGhcrUsernameOverride }}
TAGS: ${{ inputs.tags }}
BUILD_ARGS: ${{ inputs.buildArgs }}
PROVENANCE: ${{ inputs.provenance }}
PLATFORMS: ${{ inputs.platforms }}
PUSH: ${{ inputs.push }}
AWS_REGION: ${{ inputs.aws-region }}
Expand Down Expand Up @@ -312,6 +319,7 @@ jobs:
platforms: ${{ steps.run-info.outputs.platforms }}
file: ${{ inputs.dockerfile }}
build-args: ${{ inputs.buildArgs }}
provenance: ${{ inputs.provenance }}
labels: |
org.opencontainers.image.name=${{ inputs.imageName }}
org.opencontainers.image.revision=${{ github.sha }}
Expand Down

0 comments on commit 6aedaa3

Please sign in to comment.