diff --git a/.github/workflows/docker-build-and-push/action.yml b/.github/workflows/docker-build-and-push/action.yml index 2be5730..f94bdda 100644 --- a/.github/workflows/docker-build-and-push/action.yml +++ b/.github/workflows/docker-build-and-push/action.yml @@ -19,6 +19,10 @@ inputs: labels: description: "Docker Image Labels" required: true + platforms: + description: "Target platforms for Docker build" + required: false + default: "linux/amd64,linux/arm64" version: description: 'Release version Format: x.y.z-[alpha|beta|pre].n' required: true @@ -54,6 +58,7 @@ runs: context: . file: ./docker/${{ inputs.dockerfile }} push: ${{ github.event_name != 'pull_request' }} + platforms: ${{ inputs.platforms }} tags: ${{ steps.set-tags.outputs.tags }} labels: ${{ inputs.labels }} cache-from: type=gha @@ -69,4 +74,4 @@ runs: # Split TAGS by comma and sign each tag separately echo "${TAGS}" | tr ',' '\n' | while read -r tag; do cosign sign --yes "${tag}@${DIGEST}" - done \ No newline at end of file + done