diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9de8d47..313b31b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,6 +30,11 @@ on: required: false type: string default: '.' + platforms: + description: 'Platforms for the image to be built' + required: false + type: string + default: 'linux/amd64,linux/arm64' enable_scan: description: 'Enable image scanning' required: false @@ -153,7 +158,7 @@ jobs: provenance: false file: ${{ inputs.dockerfile_path }} context: ${{ inputs.image_context }} - platforms: linux/amd64,linux/arm64 + platforms: ${{ inputs.platforms }} tags: | ${{ env.IMAGE_ARTIFACT_URL }}:${{ inputs.image_tag }} ${{ env.extra_tags }}