CI Gitlab Pages (deploy later)
This commit is contained in:
parent
ea0803e22b
commit
06b09cd270
1 changed files with 13 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
image: hatsoftwares/hugo-vnu:latest
|
||||
stages:
|
||||
- validity-check
|
||||
- deploy
|
||||
- pages
|
||||
|
||||
validity-check:
|
||||
stage: validity-check
|
||||
|
@ -19,3 +19,15 @@ deploy:
|
|||
- if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then echo -e "${DEPLOYEMENT_KEY}" > key; chmod 600 key; rsync -e "ssh -i key" -a --delete --exclude='stats' --exclude='.htaccess' public/ ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/; rm key; fi
|
||||
only:
|
||||
- master
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
- mkdir .public
|
||||
- cp -r * .public
|
||||
- mv .public public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
|
|
Loading…
Reference in a new issue