-
Notifications
You must be signed in to change notification settings - Fork 1
139 lines (129 loc) · 5.36 KB
/
cron-build.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: Rebuild All images (cron)
on:
schedule:
- cron: "0 12 * * *"
permissions:
contents: read
packages: write
attestations: write
id-token: write
jobs:
docker:
runs-on: ubuntu-latest
env:
registry_url: us-central1-docker.pkg.dev/molten-verve-216720/heliax-repository
strategy:
fail-fast: true
matrix:
branches:
- name: main
template: 0.45.0
images:
- make: "build-config"
image: "namada-config"
tag: ""
- make: "build-genesis"
image: "namada-genesis"
tag: ""
- make: "build-namada"
image: "namada"
tag: ""
- make: "build-namada-inst"
image: "namada"
tag: -inst
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
version: v0.9.1
- name: Login to private registry
uses: docker/login-action@v3
with:
registry: ${{ env.registry_url }}
username: _json_key
password: ${{ secrets.ANTITHESIS_GAR_JSON_KEY }}
- name: Build & Push Image ${{ matrix.images.image }} with sha commit ${{ matrix.branches.name }}/${{ matrix.branches.template }}
run: |
registry_url="${{ env.registry_url }}" sha=${{ matrix.branches.name }} genesis_template_version=${{ matrix.branches.template }} make ${{ matrix.images.make }}
docker push ${{ env.registry_url }}/${{ matrix.images.image }}:${{ matrix.branches.name }}${{ matrix.images.tag }}
check-container:
runs-on: ubuntu-latest
env:
registry_url: us-central1-docker.pkg.dev/molten-verve-216720/heliax-repository
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.registry_url }}
username: _json_key
password: ${{ secrets.ANTITHESIS_GAR_JSON_KEY }}
- name: Build & Push Image Check Container
run: |
registry_url="${{ env.registry_url }}" make build-check
docker push ${{ env.registry_url }}/check:latest
workload-container:
runs-on: ubuntu-latest
env:
registry_url: us-central1-docker.pkg.dev/molten-verve-216720/heliax-repository
workload_commit: master
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.registry_url }}
username: _json_key
password: ${{ secrets.ANTITHESIS_GAR_JSON_KEY }}
- name: Build & Push Image Check Container
run: |
registry_url="${{ env.registry_url }}" sha="${{ env.workload_commit }}" make build-workload
docker push ${{ env.registry_url }}/workload:${{ env.workload_commit }}
# docker tag ${{ env.registry_url }}/workload:${{ env.workload_commit }} ${{ env.registry_url }}/workload:latest
# docker push {{ env.registry_url }}/workload:latest
masp-indexer:
runs-on: ubuntu-latest
env:
registry_url: us-central1-docker.pkg.dev/molten-verve-216720/heliax-repository
masp_commit: master
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.registry_url }}
username: _json_key
password: ${{ secrets.ANTITHESIS_GAR_JSON_KEY }}
- name: Build & Push Image Masp Indexer Containers
run: |
registry_url="${{ env.registry_url }}" masp_sha=${{ env.masp_commit }} make build-masp-indexer-webserver
registry_url="${{ env.registry_url }}" masp_sha=${{ env.masp_commit }} make build-masp-indexer-chain
registry_url="${{ env.registry_url }}" masp_sha=${{ env.masp_commit }} make build-masp-indexer-block-filter
docker push ${{ env.registry_url }}/masp-indexer-webserver:${{ env.masp_commit }}
docker push ${{ env.registry_url }}/masp-indexer-chain:${{ env.masp_commit }}
docker push ${{ env.registry_url }}/masp-indexer-block-filter:${{ env.masp_commit }}
# docker tag ${{ env.registry_url }}/masp-indexer-webserver:${{ env.masp_commit }} ${{ env.registry_url }}/masp-indexer-webserver:latest
# docker tag ${{ env.registry_url }}/masp-indexer-chain:${{ env.masp_commit }} ${{ env.registry_url }}/masp-indexer-chain:latest
# docker tag ${{ env.registry_url }}/masp-indexer-block-filter:${{ env.masp_commit }} ${{ env.registry_url }}/masp-indexer-block-filter:latest
# docker push ${{ env.registry_url }}/masp-indexer-webserver:latest
# docker push ${{ env.registry_url }}/masp-indexer-chain:latest
# docker push ${{ env.registry_url }}/masp-indexer-block-filter:latest