Website for sp-codes.de https://www.sp-codes.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.

44 lines
1.1 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
  1. kind: pipeline
  2. type: docker
  3. name: default
  4. steps:
  5. - name: build
  6. image: node
  7. commands:
  8. - npm install
  9. - npm run build
  10. - name: deploy-dev
  11. image: alpine
  12. environment:
  13. FTP_HOST:
  14. from_secret: FTP_HOST
  15. FTP_USERNAME:
  16. from_secret: FTP_USERNAME
  17. FTP_PASSWORD:
  18. from_secret: FTP_PASSWORD
  19. commands:
  20. - which lftp || ( apk --update add lftp )
  21. - 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
  22. when:
  23. branch:
  24. - develop
  25. event:
  26. - push
  27. - name: deploy
  28. image: alpine
  29. environment:
  30. FTP_HOST:
  31. from_secret: FTP_HOST
  32. FTP_USERNAME:
  33. from_secret: FTP_USERNAME
  34. FTP_PASSWORD:
  35. from_secret: FTP_PASSWORD
  36. commands:
  37. - which lftp || ( apk --update add lftp )
  38. - 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
  39. when:
  40. branch:
  41. - main
  42. event:
  43. - push