Skip to content

Commit

Permalink
[skip ci] input for platforms in "publish image" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Jan 18, 2024
1 parent d67d662 commit e607dbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e607dbf

Please sign in to comment.