-
Notifications
You must be signed in to change notification settings - Fork 7
/
.woodpecker.yml
36 lines (33 loc) · 995 Bytes
/
.woodpecker.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
pipeline:
build:
image: node
commands:
- node --version
- npm ci
- rm src/lib/data.json && wget -O src/lib/data.json https://data.prgblockweek.com/23/index.json
- npm run build
when:
branch: [dev]
deploy_dev:
image: rclone/rclone
commands:
- 'rclone sync build/ :sftp:dev/ --sftp-host frontier.gwei.cz --sftp-user pbw-deploy --sftp-port 2022 --sftp-pass $RCLONE_PASS -v'
secrets: [RCLONE_PASS]
when:
branch: [dev]
build_mirror:
image: node
commands:
- node --version
- npm ci
- rm src/lib/data.json && wget -O src/lib/data.json https://mirror.data.prgblockweek.com/23/index.json
- npm run build
when:
branch: [main]
deploy_mirror:
image: rclone/rclone
commands:
- 'rclone sync build/ :sftp:production/ --sftp-host frontier.gwei.cz --sftp-user pbw-deploy --sftp-port 2022 --sftp-pass $RCLONE_PASS -v'
secrets: [RCLONE_PASS]
when:
branch: [main]