Skip to content

Commit

Permalink
feat(fe-build-image): support platforms input
Browse files Browse the repository at this point in the history
  • Loading branch information
fahchen committed Sep 30, 2024
1 parent 5349da3 commit e6fbfc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fe-build-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit e6fbfc4

Please sign in to comment.