-
Notifications
You must be signed in to change notification settings - Fork 202
58 lines (54 loc) · 1.68 KB
/
mycelo-docker-image.yaml
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
name: Build mycelo image
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: mycelo-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-mycelo-image:
name: Build mycelo image
runs-on: [self-hosted, blockchain, 8-cpu]
steps:
- name: Checkout celo-blockchain 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: Build mycelo image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.mycelo
push: false
tags: mycelo:latest
load: true
build-args: GETH_COMMIT={{ github.sha }}
- name: Check docker images
run: docker images
- name: Generate genesis.json using mycelo image
run: |
mkdir genesis
docker run \
--rm \
--name mycelo \
-v $(pwd)/genesis:/genesis \
-w /genesis \
mycelo:latest \
"/usr/local/bin/mycelo genesis \
--buildpath /contracts \
--template loadtest \
--validators 1 \
--dev.accounts 1 \
--blockperiod 5 \
--epoch 600 \
--blockgaslimit 30000000 \
--mnemonic \"flock crumble custom public elder fix picnic title naive today update load delay jeans curtain engage radar flag trap maple help sustain chapter still\""
- name: Print genesis.json
run: |
head -n 30 $(pwd)/genesis/genesis.json