-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.14 KB
/
development.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
#Location: .github/workflows/custom_config.yml
name: Build and push containers to Github Container Registry and apply rolling update
defaults:
run:
shell: bash -ieo pipefail {0}
on:
push:
branches:
- develop
jobs:
build:
runs-on: deposit-dev
steps:
- name: Where am I
run: pwd
- name: Who am I
run: whoami
- name: checkout
run: |
cd /home/ubuntu/golem/deposit-payment-example
git pull
git submodule update --recursive
- name: install dependencies
run: |
cd /home/ubuntu/golem/deposit-payment-example
/home/ubuntu/.nvm/versions/node/v21.7.3/bin/pnpm install
- name: build
run: |
cd /home/ubuntu/golem/deposit-payment-example
/home/ubuntu/.nvm/versions/node/v21.7.3/bin/pnpm run build:all
env:
VITE_BACKEND_URL: https://deposit.dev.golem.network/api
- name: Restart docker images
run: |
cd /home/ubuntu/golem/deposit-payment-example/deploy
docker-compose build
docker-compose stop backend frontend
docker-compose up -d