Skip to content
Snippets Groups Projects
Commit edb4cfd8 authored by Jiří Ježek's avatar Jiří Ježek
Browse files

Update file .gitlab-ci.yml

parent 28db116a
No related branches found
No related tags found
1 merge request!122Small fix in gitlab ci pipeline
......@@ -2,6 +2,7 @@ image: registry.gitlab.com/pages/hugo:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
SSH_PORT: 22202
build-test:
......@@ -33,9 +34,9 @@ deploy_cpanel:
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS_cpanel" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh -p 22202 docscloudmuni@docs.cloud.muni.cz 'mkdir ~/tmpdeploy'
- scp -P 22202 -r ./public/* docscloudmuni@docs.cloud.muni.cz:~/tmpdeploy
- ssh -p 22202 docscloudmuni@docs.cloud.muni.cz 'mv ~/public_html ~/todelete && mv ~/tmpdeploy ~/public_html && rm -rf ~/todelete'
- ssh -p ${SSH_PORT} docscloudmuni@docs.cloud.muni.cz 'mkdir ~/tmpdeploy'
- scp -P ${SSH_PORT} -r ./public/* docscloudmuni@docs.cloud.muni.cz:~/tmpdeploy
- ssh -p ${SSH_PORT} docscloudmuni@docs.cloud.muni.cz 'mv ~/public_html ~/todelete && mv ~/tmpdeploy ~/public_html && rm -rf ~/todelete'
- sleep 5
- latest_commit=$(git log -1 --pretty=format:%h )
- "curl -H 'Cache-Control: no-cache' https://docs.cloud.muni.cz | grep $latest_commit"
......
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