eb2-website/.woodpecker.yml

39 řádky
988 B
YAML

pipeline:
build_and_test:
image: node
commands:
- node --version
- npm ci
- npm run build
#- npm run test
secrets: [AR]
deploy:
image: rclone/rclone
commands:
- "rclone sync build/ :sftp:production/ --sftp-host frontier.gwei.cz --sftp-user eb2-website-dev --sftp-port 2022 --sftp-pass $RCLONE_PASS -v"
secrets: [RCLONE_PASS]
when:
branch: [main]
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]
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:
tag: v*
branch: [main]