Skip to content

Commit 2732f87

Browse files
committed
chore: enable Docker CI
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent f84c70c commit 2732f87

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/ci-docker.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Docker CI
2+
3+
on:
4+
pull_request:
5+
branches: ['main']
6+
paths: ['Dockerfile','bin','config','.github/workflows/ci-docker.yml']
7+
8+
env:
9+
REGISTRY: ghcr.io
10+
IMAGE_NAME: cloudstruct/cardano-node
11+
12+
jobs:
13+
docker:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: qemu
18+
uses: docker/setup-qemu-action@v1
19+
- uses: docker/setup-buildx-action@v1
20+
- id: meta
21+
uses: docker/metadata-action@v3
22+
with:
23+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
24+
- name: build
25+
uses: docker/build-push-action@v2
26+
with:
27+
context: .
28+
push: false
29+
### TODO: test multiple platforms
30+
# platforms: linux/amd64,linux/arm64
31+
tags: ${{ steps.meta.outputs.tags }}
32+
labels: ${{ steps.meta.outputs.labels }}
33+
### TODO: cache artifacts
34+
#cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)