eb2-website/.woodpecker.yml

39 řádky
988 B
YAML
Surový Trvalý odkaz Normální zobrazení Historie

2022-10-21 14:45:50 +02:00
pipeline:
build_and_test:
image: node
commands:
- node --version
- npm ci
- npm run build
2022-11-09 23:43:20 +01:00
#- npm run test
2022-10-27 11:32:57 +02:00
secrets: [AR]
2022-10-21 14:45:50 +02:00
deploy:
image: rclone/rclone
commands:
2022-10-31 00:05:19 +01:00
- "rclone sync build/ :sftp:production/ --sftp-host frontier.gwei.cz --sftp-user eb2-website-dev --sftp-port 2022 --sftp-pass $RCLONE_PASS -v"
2022-10-21 14:45:50 +02:00
secrets: [RCLONE_PASS]
when:
branch: [main]
2022-10-31 00:05:19 +01:00
deploy_dev:
image: rclone/rclone
commands:
- "rclone sync build/ :sftp:dev/ --sftp-host frontier.gwei.cz --sftp-user eb2-website-dev --sftp-port 2022 --sftp-pass $RCLONE_PASS -v"
secrets: [RCLONE_PASS]
when:
branch: [dev]
2022-10-21 14:45:50 +02:00
deploy_ipfs:
image: node
environment:
IPFS_CLUSTER_HOST: https://ipfs-cluster.gwei.cz
IPFS_CLUSTER_USER: ethbrno
commands:
- npx -y --loglevel=error github:burningtree/ipfs-cluster-deploy ./build ethbrno-web
secrets: [IPFS_CLUSTER_PASS]
when:
2022-11-24 23:39:24 +01:00
tag: v*
2022-11-24 23:36:32 +01:00
branch: [main]