funky-framadate-front/.gitlab-ci.yml

21 lines
697 B
YAML
Raw Normal View History

2018-10-26 11:17:18 +02:00
image: framasoft/framadate-ci
pages:
stage: deploy
script:
2018-10-26 11:08:22 +02:00
- mkdir "${HOME}/.ssh"
- chmod 700 "${HOME}/.ssh"
# The following is stupid but required for some reason
- mkdir .public
- cp -r * .public
- mv .public public
2018-10-26 11:17:18 +02:00
- if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
2018-10-26 11:06:28 +02:00
- eval `ssh-agent -s`
2018-10-26 11:17:18 +02:00
- if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i); fi
- if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then rsync -a --delete --exclude stats/ --exclude error/ public/ ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/; fi
artifacts:
paths:
- public
only:
- master