Skip to content

Commit 3bcfab4

Browse files
committed
build multi-platform docker images
1 parent feb7ad8 commit 3bcfab4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/docker.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,28 @@ jobs:
2626
uses: actions/checkout@v4
2727

2828
- name: Log in to the Container registry
29-
uses: docker/login-action@327cd5a69de6c009b9ce71bce8395f28e651bf99
29+
uses: docker/login-action@v3
3030
with:
3131
registry: ${{ env.REGISTRY }}
3232
username: ${{ github.actor }}
3333
password: ${{ secrets.GITHUB_TOKEN }}
3434

3535
- name: Extract metadata (tags, labels) for Docker
3636
id: meta
37-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804
37+
uses: docker/metadata-action@v5
3838
with:
3939
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4040

41-
- name: Sync theme submodule
42-
run: git submodule sync && git submodule update --init --recursive
41+
- name: Set up Docker Buildx
42+
uses: docker/setup-buildx-action@v3
4343

4444
- name: Build and push Docker image
4545
id: push
46-
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
46+
uses: docker/build-push-action@v6
4747
with:
4848
context: .
4949
push: true
50+
platforms: linux/amd64,linux/arm64
5051
tags: ${{ steps.meta.outputs.tags }}
5152
labels: ${{ steps.meta.outputs.labels }}
5253

0 commit comments

Comments
 (0)