Skip to content

Commit 1f5c37f

Browse files
committed
feat: ✨ Add support for multi-platform build via GitHub Actions
Add Docker Buildx steps to add support for multi-platform build via GitHub Actions.
1 parent 98bbb0d commit 1f5c37f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/publish-docker-image.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,29 @@ jobs:
1717
- name: Check out the repo
1818
uses: actions/checkout@v2
1919

20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v2
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v2
25+
2026
- name: Log in to Docker Hub
21-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
27+
uses: docker/login-action@v2
2228
with:
2329
username: ${{ secrets.DOCKER_USERNAME }}
2430
password: ${{ secrets.DOCKER_PASSWORD }}
2531

2632
- name: Extract metadata (tags, labels) for Docker
2733
id: meta
28-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
34+
uses: docker/metadata-action@v4
2935
with:
3036
images: hlambda/hlambda-core
3137

3238
- name: Build and push Docker image
33-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
39+
uses: docker/build-push-action@v3
3440
with:
3541
context: .
3642
push: true
43+
platforms: linux/amd64,linux/arm64
3744
tags: ${{ steps.meta.outputs.tags }}
3845
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)