From e6fbfc4653b2724a2cf697963283641fe986b58e Mon Sep 17 00:00:00 2001 From: Phil Chen <06fahchen@gmail.com> Date: Mon, 30 Sep 2024 15:44:40 +0800 Subject: [PATCH] feat(fe-build-image): support platforms input --- fe-build-image/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fe-build-image/action.yml b/fe-build-image/action.yml index 50bab0b..1a341d8 100644 --- a/fe-build-image/action.yml +++ b/fe-build-image/action.yml @@ -16,6 +16,10 @@ inputs: build_args: description: List of build-time variables required: false + platforms: + description: List of platforms for which to build the image + required: false + default: linux/amd64,linux/arm64 image_name: description: Set an image name, or derive it from the repo name by default required: false @@ -78,6 +82,6 @@ runs: push: true labels: ${{ steps.meta.outputs.labels }} tags: ${{ steps.meta.outputs.tags }} - platforms: linux/amd64,linux/arm64 + platforms: ${{ inputs.platforms }} cache-from: type=registry,ref=ghcr.io/byzanteam/${{ steps.image.outputs.image_name }}:buildcache cache-to: type=registry,ref=ghcr.io/byzanteam/${{ steps.image.outputs.image_name }}:buildcache,mode=max