Merge branch 'bugfix/gitlab-ci' into 'develop'

BUGFIX: Set default gitlab-ci image (alpine) & switch commands

See merge request !68
This commit is contained in:
Daniel Hürtgen 2017-04-11 21:04:02 +02:00
commit 278853c069

View file

@ -1,4 +1,4 @@
image: 'php:latest' image: 'bash:latest'
before_script: before_script:
- apk add --no-cache make wget git - apk add --no-cache make wget git
@ -13,11 +13,12 @@ stages:
sync:github: sync:github:
stage: sync stage: sync
before_script: before_script:
- apt-get -y update && apt-get -y upgrade - apk add --no-cache openssh-client git
- apt-get -y install openssh-client git
# SSH deploy key # SSH deploy key
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY") - echo "$SSH_PRIVATE_KEY" > /tmp/private_key
- chmod go-rwx /tmp/private_key; chmod u-x /tmp/private_key
- ssh-add /tmp/private_key
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script: script: