pbw-explore/.woodpecker.yml

37 lines
995 B
YAML
Raw Normal View History

2023-01-30 13:39:53 +01:00
pipeline:
build:
2023-01-30 13:39:53 +01:00
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
2023-01-30 13:58:41 +01:00
- npm run build
when:
branch: [dev]
deploy_dev:
2023-01-30 13:58:41 +01:00
image: rclone/rclone
commands:
2023-01-31 09:47:58 +01:00
- 'rclone sync build/ :sftp:dev/ --sftp-host frontier.gwei.cz --sftp-user pbw-deploy --sftp-port 2022 --sftp-pass $RCLONE_PASS -v'
2023-01-30 13:58:41 +01:00
secrets: [RCLONE_PASS]
when:
branch: [dev]
2023-01-30 13:58:41 +01:00
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:
2023-01-30 13:58:41 +01:00
image: rclone/rclone
commands:
2023-01-31 09:47:58 +01:00
- 'rclone sync build/ :sftp:production/ --sftp-host frontier.gwei.cz --sftp-user pbw-deploy --sftp-port 2022 --sftp-pass $RCLONE_PASS -v'
2023-01-30 13:58:41 +01:00
secrets: [RCLONE_PASS]
when:
2023-01-31 09:47:58 +01:00
branch: [main]