Commit 7b9a1c5f authored by Andreas Böttger's avatar Andreas Böttger 😬

Update .gitlab-ci.yml

[skip-ci]
parent dbb8445d
Pipeline #14529 passed with stage
in 21 seconds
......@@ -68,7 +68,7 @@ review:stop:
except:
- master
.deploy:
deploy:
stage: deploy
only:
- master
......@@ -80,9 +80,9 @@ review:stop:
- 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