Commit d34f2661 authored by Andreas Böttger's avatar Andreas Böttger 😬

Update .gitlab-ci.yml

parent bbedb1ec
Pipeline #12558 passed with stage
......@@ -45,34 +45,19 @@ review:stop:
- ssg
except:
- master
deploy:generate:
deploy:
stage: deploy
only:
- master
tags:
- production
when: manual
script:
- pwd
- sudo docker pull docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest
- sudo docker run --rm -v $(pwd):/source docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest install
- sudo docker run --rm -v $(pwd):/source docker.rz.tu-harburg.de:5000/docker/jekyll-glr:latest build
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
paths:
# Was hier nicht gelistet ist, landet auch nicht in der `review`-Phase
- _site
deploy:deploy:
stage: deploy
only:
- master
tags:
- production
when: manual
script:
- pwd
- sshpass -p "$SSH_PASSWD" ssh -p "$SSH_PORT" $SSH_USER@$HOST_NAME "mkdir -p /usr/share/nginx/html/production"
- sshpass -p "$SSH_PASSWD" scp -P "$SSH_PORT" -r _site/* $SSH_USER@$HOST_NAME:/usr/share/nginx/html/production
environment:
......
Markdown is supported
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