Skip to content

Commit a291096

Browse files
authored
Update docker-publish.yml
1 parent 4834275 commit a291096

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/docker-publish.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,24 @@ jobs:
4141
# https://github.com/sigstore/cosign-installer
4242
- name: Install cosign
4343
if: github.event_name != 'pull_request'
44-
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
44+
uses: sigstore/cosign-installer@v3 #v3.1.1
4545
with:
4646
cosign-release: 'v2.1.1'
4747

48+
- name: Set up QEMU
49+
uses: docker/setup-qemu-action@v3
50+
4851
# Set up BuildKit Docker container builder to be able to build
4952
# multi-platform images and export cache
5053
# https://github.com/docker/setup-buildx-action
5154
- name: Set up Docker Buildx
52-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
55+
uses: docker/setup-buildx-action@v3 # v3.0.0
5356

5457
# Login against a Docker registry except on PR
5558
# https://github.com/docker/login-action
5659
- name: Log into registry ${{ env.REGISTRY }}
5760
if: github.event_name != 'pull_request'
58-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
61+
uses: docker/login-action@v3 # v3.0.0
5962
with:
6063
registry: ${{ env.REGISTRY }}
6164
username: ${{ github.actor }}
@@ -65,20 +68,21 @@ jobs:
6568
# https://github.com/docker/metadata-action
6669
- name: Extract Docker metadata
6770
id: meta
68-
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
71+
uses: docker/metadata-action@v5 # v5.0.0
6972
with:
7073
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
7174

7275
# Build and push Docker image with Buildx (don't push on PR)
7376
# https://github.com/docker/build-push-action
7477
- name: Build and push Docker image
7578
id: build-and-push
76-
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
79+
uses: docker/build-push-action@v5 # v5.0.0
7780
with:
7881
context: .
7982
push: ${{ github.event_name != 'pull_request' }}
8083
tags: ${{ steps.meta.outputs.tags }}
8184
labels: ${{ steps.meta.outputs.labels }}
85+
platforms: linux/arm64,linux/amd64
8286
cache-from: type=gha
8387
cache-to: type=gha,mode=max
8488

0 commit comments

Comments
 (0)