-
Notifications
You must be signed in to change notification settings - Fork 9
/
.nosana-ci.yml
91 lines (84 loc) · 2.23 KB
/
.nosana-ci.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
nosana:
description: Effect Network
global:
image: node:18
trigger:
push:
branches:
- master
- cicd
pull_request:
branches:
- '*'
jobs:
# Build docker images before running rest of pipeline
- name: docker
image: nosana/podman:latest
environment:
CONTAINER_HOST: tcp://localhost:8080
commands:
- docker build -f ci/Dockerfile . -t effectai/eos-cdt-make
- docker build -f ci/Dockerfile.nodeos . -t effectai/eos207-node16
- docker build -f ci/Dockerfile.clojure-eos . -t effectai/clojure-eos
- docker images
- name: eos-cljs
image: registry.hub.docker.com/bitnami/git:latest
commands:
- git clone https://github.com/effectai/eos-cljs.git
- cd eos-cljs
- git checkout d8bc32b54279340a4837ad33de6e218aa25a2321
- rm -r .git
artifacts:
- name: eos-cljs
- name: npm install
image: node:16
commands:
- ls -lha
- npm install
resources:
- name: eos-cljs
path: .
artifacts:
- name: node_modules
- name: build contracts
image: effectai/eos-cdt-make
commands:
- make all
artifacts:
- paths:
- contracts/**/*.{wasm,abi}
name: contracts
- name: eosio
image: effectai/eos207-node16
commands:
- ( nodeos -e -p eosio --plugin eosio::chain_api_plugin --delete-all-blocks --access-control-allow-origin="*" --access-control-allow-headers="*" --disable-replay-opts > /dev/null 2>&1 & )
- sleep 2
- curl -s http://127.0.0.1:8888/v1/chain/get_info
- npm run lumo e2e.dao
- npm run lumo e2e.force
- npm run lumo e2e.token
- npm run lumo e2e.stake
resources:
- name: node_modules
- name: contracts
- name: eos-cljs
- name: deploy-testnet
trigger:
push:
branches:
- master
image: effectai/clojure-eos
secrets:
- EOS_WALLET
- EOS_WALLET_PASS
commands:
- pwd
- ls -l
- echo -n $EOS_WALLET_PASS > jungle3-password.txt
- mkdir -p /root/eosio-wallet
- echo -n $EOS_WALLET > /root/eosio-wallet/jungle3.wallet
- bb deploy jungle4
resources:
- name: checkout
path: /app
- name: contracts