Skip to content

Commit 4f602dd

Browse files
committed
ci: add Docker build check for KMS, Gateway, and Verifier
Run Docker builds (without push) on push to master/next/dev-* and PRs to catch build issues before release.
1 parent 2d274a6 commit 4f602dd

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# SPDX-FileCopyrightText: © 2025 Phala Network <dstack@phala.network>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Docker Build Check
6+
7+
on:
8+
push:
9+
branches: [ master, next, dev-* ]
10+
pull_request:
11+
branches: [ master, next, dev-* ]
12+
13+
jobs:
14+
kms:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Write GIT_REV
23+
run: git rev-parse HEAD > kms/dstack-app/builder/.GIT_REV
24+
25+
- name: Build KMS Docker image
26+
uses: docker/build-push-action@v5
27+
with:
28+
context: kms/dstack-app/builder
29+
push: false
30+
platforms: linux/amd64
31+
provenance: false
32+
build-args: |
33+
DSTACK_REV=${{ github.sha }}
34+
DSTACK_SRC_URL=${{ github.server_url }}/${{ github.repository }}
35+
36+
- name: Build KMS contracts
37+
run: |
38+
cd kms/auth-eth
39+
npm ci
40+
npx hardhat compile
41+
42+
gateway:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Set up Docker Buildx
48+
uses: docker/setup-buildx-action@v3
49+
50+
- name: Build Gateway Docker image
51+
uses: docker/build-push-action@v5
52+
with:
53+
context: gateway/dstack-app/builder
54+
push: false
55+
platforms: linux/amd64
56+
provenance: false
57+
build-args: |
58+
DSTACK_REV=${{ github.sha }}
59+
60+
verifier:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v4
64+
65+
- name: Set up Docker Buildx
66+
uses: docker/setup-buildx-action@v3
67+
68+
- name: Build Verifier Docker image
69+
uses: docker/build-push-action@v5
70+
with:
71+
context: verifier
72+
file: verifier/builder/Dockerfile
73+
push: false
74+
platforms: linux/amd64
75+
provenance: false
76+
build-args: |
77+
DSTACK_REV=${{ github.sha }}

0 commit comments

Comments
 (0)