Commit baa7c936 authored by Andreas Böttger's avatar Andreas Böttger 😬
Browse files

Merge branch 'master' into 'rztab'

# Conflicts:
#   .gitlab-ci.yml
parents 2cc5b0ba 7b9a1c5f
Pipeline #14532 passed with stage
in 24 seconds
......@@ -12,7 +12,7 @@ stages:
- review
- deploy
pdf:
review:pdf:
stage: review
only:
- branches
......@@ -27,6 +27,8 @@ pdf:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
paths:
- book_pdf
except:
- master
review:start:
stage: review
......@@ -67,21 +69,21 @@ review:stop:
except:
- master
.deploy:
deploy:
stage: deploy
only:
- master
retry: 2
tags:
- production
- ssg
script:
- pwd
- sudo docker run --rm -v $(pwd):/source ${BUILD_IMAGE} install
- sudo docker run --rm -v $(pwd):/source ${BUILD_IMAGE} build
- mkdir -p book_pdf; sudo docker run --rm -v $(pwd):/source ${BUILD_IMAGE} pdf ./ ./book_pdf/book.pdf
- 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 _book/* $SSH_USER@$HOST_NAME:/usr/share/nginx/html/production
- sshpass -p "$SSH_PASSWD" scp -P "$SSH_PORT" -r book_pdf $SSH_USER@$HOST_NAME:/usr/share/nginx/html/production
- 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 _book/* "${SSH_USER}"@"${HOST_NAME}":/usr/share/nginx/html/production
- sshpass -p "${SSH_PASSWD}" scp -P "${SSH_PORT}" -r book_pdf "${SSH_USER}"@"${HOST_NAME}":/usr/share/nginx/html/production
environment:
name: production
#url: http://$HOST_NAME$COLON$HTTP_PORT/production/
......
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