Website for samuel-philipp.de https://www.samuel-philipp.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
495B

  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: build
  5. image: node
  6. commands:
  7. - npm install
  8. - npm run build
  9. - name: deploy
  10. image: alpine
  11. environment:
  12. FTP_HOST:
  13. from_secret: FTP_HOST
  14. FTP_USERNAME:
  15. from_secret: FTP_USERNAME
  16. FTP_PASSWORD:
  17. from_secret: FTP_PASSWORD
  18. commands:
  19. - which lftp || ( apk --update add lftp )
  20. - lftp -e "mirror -R ./dist/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST