Commit e56e8754 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #1516 from blockscout/tom2drum/image-platforms

Input for platforms in "publish image" workflow
parents d67d6621 e607dbf4
...@@ -7,12 +7,22 @@ on: ...@@ -7,12 +7,22 @@ on:
description: Image tags description: Image tags
required: false required: false
type: string type: string
platforms:
description: Image platforms (you can specify multiple platforms separated by comma)
required: false
type: string
default: linux/amd64
workflow_call: workflow_call:
inputs: inputs:
tags: tags:
description: Image tags description: Image tags
required: false required: false
type: string type: string
platforms:
description: Image platforms (you can specify multiple platforms separated by comma)
required: false
type: string
default: linux/amd64
jobs: jobs:
run: run:
...@@ -58,9 +68,7 @@ jobs: ...@@ -58,9 +68,7 @@ jobs:
push: true push: true
cache-from: type=gha cache-from: type=gha
tags: ${{ inputs.tags || steps.meta.outputs.tags }} tags: ${{ inputs.tags || steps.meta.outputs.tags }}
platforms: | platforms: ${{ inputs.platforms }}
linux/amd64
linux/arm64/v8
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: | build-args: |
GIT_COMMIT_SHA=${{ env.SHORT_SHA }} GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
......
...@@ -78,6 +78,8 @@ jobs: ...@@ -78,6 +78,8 @@ jobs:
name: Publish Docker image name: Publish Docker image
uses: './.github/workflows/publish-image.yml' uses: './.github/workflows/publish-image.yml'
secrets: inherit secrets: inherit
with:
platforms: linux/amd64,linux/arm64/v8
upload_source_maps: upload_source_maps:
name: Upload source maps to Sentry name: Upload source maps to Sentry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment