-
Notifications
You must be signed in to change notification settings - Fork 120
65 lines (59 loc) · 1.86 KB
/
Copy pathbuild-docker.yml
File metadata and controls
65 lines (59 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Docker Build Check
on:
push:
branches: [main, next]
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
id-token: write
env:
DOCKER_PLATFORMS: linux/amd64,linux/arm64
jobs:
docker-build:
runs-on: warp-ubuntu-latest-x64-8x
strategy:
matrix:
include:
- component: node
bin: miden-node
port: 57291
- component: validator
bin: miden-validator
port: 50101
- component: ntx-builder
bin: miden-ntx-builder
port: 50301
- component: remote-prover
bin: miden-remote-prover
port: 50051
- component: network-monitor
bin: miden-network-monitor
port: 3000
name: Build ${{ matrix.component }}
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Prepare image metadata
id: metadata
run: |
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
echo "commit=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
echo "version=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Build
uses: WarpBuilds/build-push-action@ec038a9f4b87a7c7ccb50ac7a26a90d46a610a81 # v6.0.9
with:
context: .
push: false
file: ./Dockerfile
platforms: ${{ env.DOCKER_PLATFORMS }}
profile-name: ${{ vars.WARPBUILD_DOCKER_BUILDER_PROFILE }}
pull: true
build-args: |
BIN=${{ matrix.bin }}
PORT=${{ matrix.port }}
CREATED=${{ steps.metadata.outputs.created }}
VERSION=${{ steps.metadata.outputs.version }}
COMMIT=${{ steps.metadata.outputs.commit }}