-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitpod.yml
60 lines (56 loc) · 1.79 KB
/
.gitpod.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
tasks:
- name: KaliDAO Wrappr App
init: |
# prebuild steps the run in the background for each commit
# bring in secret access tokens from gitpod user dashboard
eval $(gp env -e)
# build images from Dockerfile
docker-compose build
cd backend && yarn install && cd -
cd frontend && yarn install && cd -
cd e2e-tests && yarn install && cd -
cd contracts && yarn install && cd -
gp sync-done build
command: |
# set -evx
# shutdown any leftover containers from a previous session
docker-compose down
# start app modules
docker-compose up -d backend
# set API path
gp ports await 3001 && \
export SUBGRAPH_API_URL=$(gp url 3001)
docker-compose up -d frontend
- name: Shell
command: |
# gp sync-await build
bash
openMode: split-right
vscode:
extensions:
- ms-vscode.vscode-typescript-tslint-plugin
- bungcip.better-toml
- esbenp.prettier-vscode
- juanblanco.solidity
ports:
- port: 3000
onOpen: open-browser
visibility: public
- port: 3001-8999
onOpen: ignore
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
addComment: true
# add a "Review in Gitpod" button to pull requests (defaults to false)
addBadge: true
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: prebuilt-in-gitpod