Skip to content

Commit

Permalink
feat(build-push-to-gar): Expose platforms parameter (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikushch authored Apr 5, 2024
1 parent 362873a commit f86c2ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions actions/push-to-gar-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`) |
5 changes: 5 additions & 0 deletions actions/push-to-gar-docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -89,3 +93,4 @@ runs:
cache-from: type=gha
cache-to: type=gha,mode=max
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}

0 comments on commit f86c2ca

Please sign in to comment.