Skip to content

Commit 42fc4a5

Browse files
authored
feat: add docker support for arm64 platform
1 parent 307172f commit 42fc4a5

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/master.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,27 @@ jobs:
1616
node-version: [14.x]
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v2
2023

2124
- name: Login to Docker Hub
22-
uses: docker/login-action@v1
25+
uses: docker/login-action@v2
2326
with:
2427
username: ${{ secrets.DOCKER_HUB_USERNAME }}
2528
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2629

2730
- name: Set up Docker Buildx
2831
id: buildx
29-
uses: docker/setup-buildx-action@v1
32+
uses: docker/setup-buildx-action@v2
3033

3134
- name: Build and push
3235
id: docker_build
33-
uses: docker/build-push-action@v2
36+
uses: docker/build-push-action@v4
3437
with:
3538
context: ./
3639
file: ./Dockerfile
40+
platforms: linux/amd64,linux/arm64
3741
push: true
3842
tags: jembi/openhim-core:latest

.github/workflows/tags.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,30 @@ jobs:
1515
node-version: [14.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
19+
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v2
1922

2023
- name: Set env
2124
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
2225

2326
- name: Login to Docker Hub
24-
uses: docker/login-action@v1
27+
uses: docker/login-action@v2
2528
with:
2629
username: ${{ secrets.DOCKER_HUB_USERNAME }}
2730
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
2831

2932
- name: Set up Docker Buildx
3033
id: buildx
31-
uses: docker/setup-buildx-action@v1
34+
uses: docker/setup-buildx-action@v2
3235

3336
- name: Build and push
3437
id: docker_build
35-
uses: docker/build-push-action@v2
38+
uses: docker/build-push-action@v4
3639
with:
3740
context: ./
3841
file: ./Dockerfile
42+
platforms: linux/amd64,linux/arm64
3943
push: true
4044
tags: jembi/openhim-core:${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)