From e607dbf42d08d1fff7cc197f49dfd4e77a8b6a77 Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 18 Jan 2024 17:17:02 +0400 Subject: [PATCH] [skip ci] input for platforms in "publish image" workflow --- .github/workflows/publish-image.yml | 14 +++++++++++--- .github/workflows/release.yml | 2 ++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index eeed828ccd..ba0382b078 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -7,12 +7,22 @@ on: description: Image tags required: false type: string + platforms: + description: Image platforms (you can specify multiple platforms separated by comma) + required: false + type: string + default: linux/amd64 workflow_call: inputs: tags: description: Image tags required: false type: string + platforms: + description: Image platforms (you can specify multiple platforms separated by comma) + required: false + type: string + default: linux/amd64 jobs: run: @@ -58,9 +68,7 @@ jobs: push: true cache-from: type=gha tags: ${{ inputs.tags || steps.meta.outputs.tags }} - platforms: | - linux/amd64 - linux/arm64/v8 + platforms: ${{ inputs.platforms }} labels: ${{ steps.meta.outputs.labels }} build-args: | GIT_COMMIT_SHA=${{ env.SHORT_SHA }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbb3f07448..c3ca89391e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,6 +78,8 @@ jobs: name: Publish Docker image uses: './.github/workflows/publish-image.yml' secrets: inherit + with: + platforms: linux/amd64,linux/arm64/v8 upload_source_maps: name: Upload source maps to Sentry