Verified Commit b6ee1539 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

adapt yml

parent 2a2a18f1
image: git-r3lab.uni.lu:4567/r3/docker/nodejs-yarn-grunt
stages:
- build
- deploy
build:
image: git-r3lab.uni.lu:4567/r3/docker/nodejs-yarn-grunt
stage: build
rules:
- if: $CI_COMMIT_BRANCH == "develop"
before_script:
- git config submodule.theme.url https://$CI_DEPLOY_USER:$CI_DEPLOY_PASSWORD@git-r3lab.uni.lu/R3-core/outreach/theme.git
- git submodule update --recursive --init
pages:
stage: deploy
script:
- bash .ci/deploy.sh
artifacts:
expire_in: 1 week
paths:
- public
production:
stage: deploy
image: alpine:3.1
before_script:
- 'which ssh-agent || ( apk add --update openssh )'
- eval $(ssh-agent -s)
- echo "$B64SSHPRIVKEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
script:
- ssh -p $SSHPORT $SSHCONNECT "rm -rf ~/web/latest/*"
- scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment