2019-11-06 20:36:55 +00:00
|
|
|
kind: pipeline
|
2020-07-04 05:53:35 +00:00
|
|
|
type: docker
|
2020-07-05 10:19:25 +00:00
|
|
|
name: default
|
2019-11-06 20:36:55 +00:00
|
|
|
|
2020-07-05 10:17:49 +00:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
2019-11-06 20:36:55 +00:00
|
|
|
steps:
|
2019-11-06 20:50:05 +00:00
|
|
|
- name: build
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
2020-07-30 20:03:29 +00:00
|
|
|
- name: deploy-develop
|
|
|
|
image: alpine
|
|
|
|
environment:
|
|
|
|
FTP_HOST:
|
|
|
|
from_secret: FTP_HOST
|
|
|
|
FTP_USERNAME:
|
|
|
|
from_secret: FTP_USERNAME
|
|
|
|
FTP_PASSWORD:
|
|
|
|
from_secret: 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.samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- develop
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- name: deploy-master
|
2019-11-06 20:50:05 +00:00
|
|
|
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 )
|
2020-07-04 05:53:35 +00:00
|
|
|
- lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./dist/ samuel-philipp.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
event:
|
|
|
|
- push
|