-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (34 loc) · 1.07 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
stages:
- deploy
before_script:
- apk update
- apk add openssh
- apk add lftp
deploy_mockup:
stage: deploy
only:
- master
- main
tags:
- hva
environment: Mockup
script:
- lftp -e "set net:max-retries 3; set ssl:verify-certificate no; set ftp:ssl-allow yes; set sftp:auto-confirm yes; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; mirror -Rv wwwroot/ $FTP_TARGETPATH --ignore-time --parallel=10"
deploy_dev:
stage: deploy
only:
- dev
tags:
- hva
environment: Development
script:
- lftp -e "set net:max-retries 3; set ssl:verify-certificate no; set ftp:ssl-allow yes; set sftp:auto-confirm yes; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; mirror -Rv wwwroot/ $FTP_TARGETPATH --ignore-time --parallel=10"
deploy_live:
stage: deploy
only:
- live
tags:
- hva
environment: Live
script:
- lftp -e "set net:max-retries 3; set ssl:verify-certificate no; set ftp:ssl-allow yes; set sftp:auto-confirm yes; open -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST; mirror -Rv wwwroot/ $FTP_TARGETPATH --ignore-time --parallel=10"