Skip to content

Commit 3f66f0e

Browse files
authored
Merge pull request #13 from nodejs/multi-image-build
Update actions and publish multi-image builds
2 parents 7023445 + 8322945 commit 3f66f0e

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/docker-build-and-publish.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@ on:
88
jobs:
99
docker:
1010
runs-on: ubuntu-latest
11-
steps:
12-
- name: Set up QEMU
13-
uses: docker/setup-qemu-action@v1
14-
- name: Set up Docker Buildx
15-
uses: docker/setup-buildx-action@v1
11+
steps: # See https://docs.docker.com/build/ci/github-actions/multi-platform/
1612
- name: Login to DockerHub
17-
uses: docker/login-action@v1
13+
uses: docker/login-action@v3
1814
with: # these are defined in the GitHub Secrets UI
1915
username: ${{ secrets.DOCKERHUB_USERNAME }}
2016
password: ${{ secrets.DOCKERHUB_TOKEN }}
17+
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v3
20+
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
2124
- name: Build and push
22-
id: docker_build
23-
uses: docker/build-push-action@v2
25+
uses: docker/build-push-action@v6
2426
with:
27+
platforms: linux/amd64,linux/arm64
2528
push: true
2629
tags: nodejs/devcontainer:nightly

0 commit comments

Comments
 (0)