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.
34 lines
864 B
34 lines
864 B
pipeline: |
|
build: |
|
image: node:lts |
|
commands: |
|
- npm install |
|
- npm run build |
|
deploy-dev: |
|
image: alpine |
|
secrets: |
|
- FTP_HOST |
|
- FTP_USERNAME |
|
- FTP_PASSWORD |
|
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 |
|
deploy: |
|
image: alpine |
|
secrets: |
|
- FTP_HOST |
|
- FTP_USERNAME |
|
- FTP_PASSWORD |
|
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
|
|
|