Skip to content

Commit 237e1ad

Browse files
authored
Merge pull request #6 from cloudstruct/chore/test-arm
chore: run Docker CI on ARM
2 parents 9b8519e + 277a8f8 commit 237e1ad

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/ci-docker.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
IMAGE_NAME: cloudstruct/cardano-node
1111

1212
jobs:
13-
docker:
13+
build-amd64:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
@@ -26,9 +26,27 @@ jobs:
2626
with:
2727
context: .
2828
push: false
29-
### TODO: test multiple platforms
30-
# platforms: linux/amd64,linux/arm64
3129
tags: ${{ steps.meta.outputs.tags }}
3230
labels: ${{ steps.meta.outputs.labels }}
33-
### TODO: cache artifacts
34-
#cache-to: type=gha,mode=max
31+
cache-from: type=gha
32+
cache-to: type=gha,mode=max
33+
build-arm64:
34+
runs-on: self-hosted
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: qemu
38+
uses: docker/setup-qemu-action@v1
39+
- uses: docker/setup-buildx-action@v1
40+
- id: meta
41+
uses: docker/metadata-action@v3
42+
with:
43+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44+
- name: build
45+
uses: docker/build-push-action@v2
46+
with:
47+
context: .
48+
push: false
49+
tags: ${{ steps.meta.outputs.tags }}
50+
labels: ${{ steps.meta.outputs.labels }}
51+
cache-from: type=gha
52+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)