forked from nutomic/joinpeertube
Pff
This commit is contained in:
parent
aaffdf2f7d
commit
fdb8e8d302
1 changed files with 12 additions and 0 deletions
|
@ -9,9 +9,21 @@ validity-check:
|
||||||
- hugo
|
- hugo
|
||||||
- find public -name index.html | xargs java -jar /opt/dist/vnu.jar
|
- find public -name index.html | xargs java -jar /opt/dist/vnu.jar
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- hugo
|
||||||
|
- mkdir "${HOME}/.ssh"
|
||||||
|
- chmod 700 "${HOME}/.ssh"
|
||||||
|
- echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts
|
||||||
|
- 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:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
- hugo
|
||||||
- mkdir .public
|
- mkdir .public
|
||||||
- cp -r * .public
|
- cp -r * .public
|
||||||
- mv .public public
|
- mv .public public
|
||||||
|
|
Loading…
Reference in a new issue