-
Notifications
You must be signed in to change notification settings - Fork 204
55 lines (49 loc) · 1.43 KB
/
build_local_tesnet.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
name: Build local testnet
on:
pull_request:
branches: [ master, rc/* ]
types: [opened, ready_for_review]
push:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest]
runs-on: ${{ matrix.runs-on }}
name: Build
steps:
- name: Set up Go 1.20.7
uses: actions/setup-go@v3
with:
go-version: 1.20.7
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Check out mx-deploy-go
uses: actions/checkout@v4
with:
repository: multiversx/mx-chain-deploy-go
path: mx-chain-deploy-go
- name: Build node and seednode images
run: |
docker build -f docker/node/Dockerfile . -t node:dev
docker build -f docker/seednode/Dockerfile . -t seednode:dev
- name: Start localnet
id: generate-config
run: |
cd ${GITHUB_WORKSPACE}/scripts/docker-testnet
export TESTNETDIR=${GITHUB_WORKSPACE}/docker-testnet
export CI_RUN=1
./start.sh
echo "Check everything is alright. Remove once confirmed"
docker ps
curl http://localhost:7950
#
# - name: Deploy local testnet
# run: |
# export TESTNETDIR=${GITHUB_WORKSPACE}/docker-testnet
# echo ${TESTNETDIR}
# docker compose up -d
# docker ps -a
# docker logs seednode