forked from 0xTylerHolmes/ethereum-testnet-bootstrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (73 loc) · 2.77 KB
/
etb-all-clients.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
name: etb-all-clients
on:
workflow_dispatch:
inputs:
reason:
description: "Reason for manual run"
required: false
default: "no reason provided"
type: string
# push:
# branches: [ "master" ]
# schedule:
# Runs daily at 00:00 (see https://crontab.guru/#0_0_*_*_*)
# - cron: '0 3 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY: us-central1-docker.pkg.dev/molten-verve-216720
REPOSITORY: ethereum-repository
jobs:
build:
runs-on: self-hosted
steps:
- name: fix permissions
run: sudo chown -R $USER:$USER /home/devops/antithesis-ethereum-testnet-bootstrapper/
- uses: actions/checkout@v3
- name: Registry login
uses: docker/login-action@v2
with:
registry: us-central1-docker.pkg.dev
username: _json_key
password: ${{ secrets.ANTITHESIS_LOGIN_FILE }}
- name: Build etb-all-clients images
timeout-minutes: 500
run: |
make rebuild-bootstrapper
make build-client-images
- name: Push etb-all-clients images
timeout-minutes: 500
run: |
docker tag etb-all-clients etb-all-clients:dencun
docker tag etb-all-clients ${REGISTRY}/${REPOSITORY}/etb-all-clients:dencun
docker push ${REGISTRY}/${REPOSITORY}/etb-all-clients:dencun
docker tag ethereum-testnet-bootstrapper ethereum-testnet-bootstrapper:dencun
docker tag ethereum-testnet-bootstrapper ${REGISTRY}/${REPOSITORY}/ethereum-testnet-bootstrapper:dencun
docker push ${REGISTRY}/${REPOSITORY}/ethereum-testnet-bootstrapper:dencun
base_path="./configs/clients/"
files=(
"mainnet-deneb-prysm-geth-assertoor.yaml"
"mainnet-deneb-prysm-geth-assertoor-race.yaml"
"mainnet-deneb-prysm-nethermind-assertoor.yaml"
"mainnet-deneb-lighthouse-nethermind-assertoor.yaml"
"mainnet-deneb-lighthouse-geth-assertoor.yaml"
"mainnet-deneb-lodestar-besu-assertoor.yaml"
"mainnet-deneb-grandine-reth-assertoor.yaml"
"mainnet-deneb-nimbus-reth-assertoor.yaml"
"mainnet-deneb-teku-besu-assertoor.yaml"
"mainnet-deneb-mix-1.yaml"
"mainnet-deneb-mix-2.yaml"
"mainnet-deneb-mix-3.yaml"
"mainnet-deneb-mix-4.yaml"
)
for file in "${files[@]}"
do
image_name="${REGISTRY}/${REPOSITORY}/$(basename $file .yaml)"
make build-config config=$base_path$file config-image=$image_name config-tag=dencun
docker push $image_name:dencun
done
- name: Verify Config Images
timeout-minutes: 500
run: |
./verify_configs.sh