sp-codes.de/.woodpecker.yml

35 lines
864 B
YAML
Raw Normal View History

2021-10-01 17:41:58 +00:00
pipeline:
build:
2021-10-01 17:19:31 +00:00
image: node:lts
commands:
- npm install
- npm run build
2021-10-01 17:41:58 +00:00
deploy-dev:
2021-10-01 17:19:31 +00:00
image: alpine
2021-10-01 17:41:58 +00:00
secrets:
- FTP_HOST
- FTP_USERNAME
- FTP_PASSWORD
2021-10-01 17:19:31 +00:00
commands:
- which lftp || ( apk --update add lftp )
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ dev.sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
when:
branch:
- develop
event:
- push
2021-10-01 17:41:58 +00:00
deploy:
2021-10-01 17:19:31 +00:00
image: alpine
2021-10-01 17:41:58 +00:00
secrets:
- FTP_HOST
- FTP_USERNAME
- FTP_PASSWORD
2021-10-01 17:19:31 +00:00
commands:
- which lftp || ( apk --update add lftp )
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ sp-codes.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
when:
branch:
- main
event:
- push