Skip to content

Commit ca2b11f

Browse files
committed
try not even running buildx for build-only
1 parent 3c927f6 commit ca2b11f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
# Set up QEMU for cross-platform builds below
2727
- name: Set up QEMU
2828
if: github.event_name == 'release'
29-
id: qemu
3029
uses: docker/setup-qemu-action@v1
3130
with:
3231
image: tonistiigi/binfmt:latest
3332
platforms: all
3433

3534
- name: Setup Docker buildx
35+
if: github.event_name == 'release'
3636
uses: docker/setup-buildx-action@v2
3737

3838
# Extract metadata (tags, labels) for Docker
@@ -60,7 +60,6 @@ jobs:
6060
# https://github.com/docker/build-push-action
6161
- name: Validate Docker image build
6262
if: github.event_name != 'release'
63-
id: build-only
6463
uses: docker/build-push-action@v3
6564
with:
6665
context: .
@@ -72,7 +71,6 @@ jobs:
7271
# https://github.com/docker/build-push-action
7372
- name: Build and publish Docker image
7473
if: github.event_name == 'release'
75-
id: build-and-push
7674
uses: docker/build-push-action@v3
7775
with:
7876
context: .

0 commit comments

Comments
 (0)