4
4
push :
5
5
branches :
6
6
- " main"
7
+ - " refactor/monorepo"
7
8
paths :
8
- - " .github/image /Dockerfile"
9
+ - " .github/images/hcp /Dockerfile"
9
10
- " .github/workflows/docker.yml"
10
- - " src /**"
11
+ - " crates /**"
11
12
12
13
jobs :
13
14
build :
21
22
target : x86_64-unknown-linux-gnu
22
23
args : " --locked --release"
23
24
24
- - release_for : Linux-arm64
25
- build_on : buildjet-2vcpu-ubuntu-2204-arm
26
- target : " aarch64-unknown-linux-gnu"
27
- args : " --locked --release"
28
-
29
25
runs-on : ${{ matrix.build_on }}
30
26
steps :
31
27
- name : checkout repository
@@ -48,13 +44,19 @@ jobs:
48
44
49
45
- name : rename binaries
50
46
run : |
51
- mv target/${{ matrix.target }}/release/operator${{ matrix.ext }} operator-${{ matrix.release_for }}${{ matrix.ext }}
47
+ mv target/${{ matrix.target }}/release/operator operator-${{ matrix.release_for }}
48
+ mv target/${{ matrix.target }}/release/rpc rpc-${{ matrix.release_for }}
49
+ mv target/${{ matrix.target }}/release/metrics-exporter rpc-${{ matrix.release_for }}
50
+ mv target/${{ matrix.target }}/release/open-head open-head-${{ matrix.release_for }}
52
51
53
52
- name : upload artifacts
54
53
uses : actions/upload-artifact@v4
55
54
with :
56
55
name : binaries-${{ matrix.release_for }}
57
- path : operator-${{ matrix.release_for }}${{ matrix.ext }}
56
+ path : |
57
+ operator-${{ matrix.release_for }}
58
+ rpc-${{ matrix.release_for }}
59
+ metrics-exporter-${{ matrix.release_for }}
58
60
59
61
docker :
60
62
runs-on : ubuntu-latest
75
77
id : meta
76
78
uses : docker/metadata-action@v5
77
79
with :
78
- images : ghcr.io/cardano-scaling/doom-patrol-operator
80
+ images : ghcr.io/cardano-scaling/hydra-control-plane
79
81
tags : |
80
82
type=raw,value=latest,enable={{is_default_branch}}
81
83
type=semver,pattern=v{{major}}
@@ -103,12 +105,15 @@ jobs:
103
105
- name : Rename artifacts
104
106
run : |+
105
107
mv .github/image/bin/operator-Linux-x86_64 .github/image/bin/operator-Linux-amd64
106
-
108
+ mv .github/image/bin/rpc-Linux-x86_64 .github/image/bin/rpc-Linux-amd64
109
+ mv .github/image/bin/metrics-exporter-Linux-x86_64 .github/image/bin/metrics-exporter-Linux-amd64
110
+ mv .github/image/bin/open-head-Linux-x86_64 .github/image/bin/open-head-Linux-amd64
111
+
107
112
- name : Build and push
108
113
uses : docker/build-push-action@v5
109
114
with :
110
- context : .github/image
111
- platforms : linux/arm64,linux/ amd64
115
+ context : .github/images/hcp
116
+ platforms : linux/amd64
112
117
push : true
113
118
tags : ${{ steps.meta.outputs.tags }}
114
119
labels : ${{ steps.meta.outputs.labels }}
0 commit comments