samuel-philipp.de/.gitlab-ci.yml
2019-10-27 20:40:22 +01:00

29 lines
No EOL
497 B
YAML

stages:
- build
- deploy
build:
image: node
stage: build
dependencies: []
before_script:
- rm package-lock.json
- npm install
script:
- npm run build
cache:
paths:
- node_modules/
artifacts:
paths:
- dist/
deploy:
image: alpine
stage: deploy
dependencies:
- build
before_script:
- which lftp || ( apk --update add lftp )
script:
- lftp -e "mirror -R ./dist/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST