From 62c7604f9dee42815bc584b6a63183487166e678 Mon Sep 17 00:00:00 2001 From: Andrii Kushch Date: Fri, 5 Apr 2024 12:20:30 +0200 Subject: [PATCH 1/3] feat(build-push-to-gar): Expose platforms parameter --- actions/push-to-gar-docker/action.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/push-to-gar-docker/action.yaml b/actions/push-to-gar-docker/action.yaml index 52e6bc76..777bb8c8 100644 --- a/actions/push-to-gar-docker/action.yaml +++ b/actions/push-to-gar-docker/action.yaml @@ -89,3 +89,4 @@ runs: cache-from: type=gha cache-to: type=gha,mode=max file: ${{ inputs.file }} + platforms: ${{ inputs.platforms }} From edede922d1be57b796c88f754396f9af20d4778d Mon Sep 17 00:00:00 2001 From: andriikushch Date: Fri, 5 Apr 2024 12:23:13 +0200 Subject: [PATCH 2/3] Update doc --- actions/push-to-gar-docker/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/push-to-gar-docker/README.md b/actions/push-to-gar-docker/README.md index 21b04aa2..e0673aaa 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`) | From f6ab218c411d5042490aa7bfc786edcf9aa3e551 Mon Sep 17 00:00:00 2001 From: andriikushch Date: Fri, 5 Apr 2024 16:58:40 +0200 Subject: [PATCH 3/3] Add platforms to the inputs --- actions/push-to-gar-docker/action.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actions/push-to-gar-docker/action.yaml b/actions/push-to-gar-docker/action.yaml index 777bb8c8..fe1f3f15 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