Skip to content
Snippets Groups Projects
Verified Commit b6ee1539 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

adapt yml

parent 2a2a18f1
No related branches found
No related tags found
No related merge requests found
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: script:
- bash .ci/deploy.sh - bash .ci/deploy.sh
artifacts: production:
expire_in: 1 week stage: deploy
paths: image: alpine:3.1
- public 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment