give up on bash & alpine

This commit is contained in:
Thomas Citharel 2018-10-26 11:17:18 +02:00
parent 5edd7c6cd5
commit ee2dfb7002

View File

@ -1,9 +1,7 @@
image: alpine:latest image: framasoft/framadate-ci
pages: pages:
stage: deploy stage: deploy
before_script:
- apk --update add openssh-client && apk add bash
script: script:
- mkdir "${HOME}/.ssh" - mkdir "${HOME}/.ssh"
- chmod 700 "${HOME}/.ssh" - chmod 700 "${HOME}/.ssh"
@ -11,10 +9,10 @@ pages:
- mkdir .public - mkdir .public
- cp -r * .public - cp -r * .public
- mv .public public - mv .public public
- bash -c 'if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi' - if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
- eval `ssh-agent -s` - eval `ssh-agent -s`
- bash -c 'if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i); fi' - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i); fi
- bash -c 'if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then rsync -a --delete --exclude stats/ --exclude error/ public/ ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/; fi' - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then rsync -a --delete --exclude stats/ --exclude error/ public/ ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/; fi
artifacts: artifacts:
paths: paths:
- public - public