fix(CI): only build and deploy on master
This commit is contained in:
parent
50bc47ce74
commit
dc38119da8
|
@ -18,6 +18,8 @@ Build:
|
||||||
paths:
|
paths:
|
||||||
- _site/
|
- _site/
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
Deploy:
|
Deploy:
|
||||||
image: alpine
|
image: alpine
|
||||||
|
@ -31,3 +33,5 @@ Deploy:
|
||||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||||
script:
|
script:
|
||||||
- lftp sftp://fainsil:DUMMY@ftp.perso.bde.inp-toulouse.fr -e "mirror -e -R _site www_public --exclude content ; quit"
|
- lftp sftp://fainsil:DUMMY@ftp.perso.bde.inp-toulouse.fr -e "mirror -e -R _site www_public --exclude content ; quit"
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
Reference in a new issue