diff --git a/actions/push-to-gar-docker/README.md b/actions/push-to-gar-docker/README.md index 21b04aa24..e0673aaa1 100644 --- a/actions/push-to-gar-docker/README.md +++ b/actions/push-to-gar-docker/README.md @@ -45,3 +45,4 @@ jobs: | `image_name` | String | Name of the image to be pushed to GAR. | | `build-args` | String | List of arguments necessary for the Docker image to be built. | | `file` | String | Path and filename of the dockerfile to build from. (Default: `{context}/Dockerfile`) | +| `platforms` | List | List of platforms the image should be built for (e.g. `linux/amd64,linux/arm64`) | diff --git a/actions/push-to-gar-docker/action.yaml b/actions/push-to-gar-docker/action.yaml index 52e6bc764..fe1f3f15f 100644 --- a/actions/push-to-gar-docker/action.yaml +++ b/actions/push-to-gar-docker/action.yaml @@ -29,6 +29,10 @@ inputs: description: | The dockerfile to use. required: false + platforms: + description: | + List of platforms to build the image for + required: false runs: using: composite @@ -89,3 +93,4 @@ runs: cache-from: type=gha cache-to: type=gha,mode=max file: ${{ inputs.file }} + platforms: ${{ inputs.platforms }}