2019-11-06 20:36:55 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2019-11-06 20:50:05 +00:00
|
|
|
- name: build
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
image: alpine
|
|
|
|
environment:
|
2019-11-06 21:01:35 +00:00
|
|
|
FTP_HOST:
|
|
|
|
from_secret: FTP_HOST
|
|
|
|
FTP_USERNAME:
|
|
|
|
from_secret: FTP_USERNAME
|
|
|
|
FTP_PASSWORD:
|
|
|
|
from_secret: FTP_PASSWORD
|
2019-11-06 20:50:05 +00:00
|
|
|
commands:
|
|
|
|
- which lftp || ( apk --update add lftp )
|
|
|
|
- lftp -e "mirror -R ./dist/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|