Skip to content
Snippets Groups Projects
Commit 1ecef791 authored by Rastislav Kubala's avatar Rastislav Kubala
Browse files

Deploy to "master"

parent 5dc7f85d
No related branches found
No related tags found
5 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!267Variable for "docs-devel.it4i.cz" added
...@@ -126,7 +126,7 @@ deploy to production: ...@@ -126,7 +126,7 @@ deploy to production:
- master@sccs/docs.it4i.cz - master@sccs/docs.it4i.cz
when: manual when: manual
deploy to docs_devel: deploy to stage on docs_devel:
environment: stage environment: stage
stage: deploy stage: deploy
image: it4innovations/docker-mkdocscheck:latest image: it4innovations/docker-mkdocscheck:latest
...@@ -147,3 +147,26 @@ deploy to docs_devel: ...@@ -147,3 +147,26 @@ deploy to docs_devel:
- rsync -a --delete site/ root@"$SSH_HOST_STAGE_DEV":/srv/docs-devel.it4i.cz/devel/$CI_BUILD_REF_NAME/ - rsync -a --delete site/ root@"$SSH_HOST_STAGE_DEV":/srv/docs-devel.it4i.cz/devel/$CI_BUILD_REF_NAME/
only: only:
- branches@sccs/docs.it4i.cz - branches@sccs/docs.it4i.cz
deploy to production on docs_devel:
environment: master
stage: deploy
image: it4innovations/docker-mkdocscheck:latest
before_script:
# install ssh-agent
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- 'which rsync || ( apt-get update -y && apt-get install rsync -y )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY_DEV")
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)
# WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script:
- chown nginx:nginx site -R
- rsync -a --delete site/ root@"$SSH_HOST_STAGE_DEV":/srv/docs.it4i.cz/site/
only:
- master@sccs/docs.it4i.cz
when: manual
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment