feat: enable automated FTP deployments on push to main and beta branches
This commit is contained in:
parent
f9373908f7
commit
f62c2ebdf8
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ steps:
|
|||
- apk add --no-cache lftp
|
||||
- lftp -d -u "$FTP_USERNAME","$FTP_PASSWORD" -e "set ssl:verify-certificate no; set ftp:ssl-allow yes; set ftp:ssl-force true; set ftp:ssl-protect-data true; set ftp:passive-mode true; mirror -R dist/ ./; quit" $FTP_HOST
|
||||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
- event: deployment
|
||||
environment: production
|
||||
|
||||
|
|
@ -51,5 +53,7 @@ steps:
|
|||
- apk add --no-cache lftp
|
||||
- lftp -d -u "$FTP_USERNAME","$FTP_PASSWORD" -e "set ssl:verify-certificate no; set ftp:ssl-allow yes; set ftp:ssl-force true; set ftp:ssl-protect-data true; set ftp:passive-mode true; mirror -R dist/ ./; quit" $FTP_HOST
|
||||
when:
|
||||
- branch: beta
|
||||
event: push
|
||||
- event: deployment
|
||||
environment: beta
|
||||
|
|
|
|||
Loading…
Reference in a new issue