joinpeertube/.gitlab-ci.yml

32 lines
746 B
YAML
Raw Normal View History

2018-02-28 15:33:36 +00:00
image: hatsoftwares/hugo-vnu:latest
stages:
- validity-check
2018-02-28 15:52:25 +00:00
- deploy
2018-02-28 15:33:36 +00:00
validity-check:
stage: validity-check
script:
- hugo
- find public -name index.html | xargs java -jar /opt/dist/vnu.jar
2018-02-28 15:55:41 +00:00
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
2018-02-28 15:45:53 +00:00
pages:
2018-02-28 15:52:25 +00:00
stage: deploy
2018-02-28 15:45:53 +00:00
script:
2018-02-28 15:55:41 +00:00
- hugo
2018-02-28 15:45:53 +00:00
artifacts:
paths:
- public
only:
- master