Skip to content

Commit c020cd5

Browse files
authored
fix(docker): Use buildx for publication builds (#154)
* fix(docker): Use buildx for publication builds Signed-off-by: Kleo Davidson <[email protected]> * chore: add PR validation without publishing Signed-off-by: Kleo Davidson <[email protected]> --------- Signed-off-by: Kleo Davidson <[email protected]>
1 parent 49e3069 commit c020cd5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish-image.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
description: "Tag to publish in addition to `latest`"
1010
required: true
1111
type: string
12+
pull_request:
1213

1314
jobs:
1415
publish:
@@ -17,6 +18,14 @@ jobs:
1718
steps:
1819
- uses: actions/[email protected]
1920

21+
- name: Setup Buildx
22+
uses: docker/[email protected]
23+
with:
24+
install: true
25+
platforms: |
26+
linux/amd64
27+
linux/arm64
28+
2029
- name: Compute Tags
2130
id: compute-tags
2231
run: |
@@ -44,7 +53,7 @@ jobs:
4453
uses: docker/[email protected]
4554
with:
4655
context: .
47-
push: true
56+
push: ${{ github.event_name != 'pull_request' }} # allows dry-run validation on PR
4857
tags: ${{ steps.compute-tags.outputs.tags }}
4958
platforms: |
5059
linux/amd64

0 commit comments

Comments
 (0)