From f1b9f6bc0c8054aab37a0cb20b7564d36b4b8cd7 Mon Sep 17 00:00:00 2001 From: bryopsida <8363252+bryopsida@users.noreply.github.com> Date: Sat, 31 Aug 2024 09:16:28 -0500 Subject: [PATCH] add option to set platform/arch of images --- .github/workflows/oci-build-image.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/oci-build-image.yml b/.github/workflows/oci-build-image.yml index 99f1cbd..1009a79 100644 --- a/.github/workflows/oci-build-image.yml +++ b/.github/workflows/oci-build-image.yml @@ -3,6 +3,11 @@ name: Build Image on: workflow_call: inputs: + platforms: + type: 'string' + required: false + default: 'linux/amd64,linux/arm64' + description: 'A csv list of platforms/archs to create images for' runs-on: type: 'string' required: false @@ -185,7 +190,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max - platforms: linux/amd64,linux/arm64 + platforms: ${{ inputs.platforms}} - name: Sign the published Docker image if: ${{ github.event_name != 'pull_request' }} env: