Skip to content
Snippets Groups Projects
Commit 785a5cba authored by František Řezníček's avatar František Řezníček
Browse files

Merge branch 'small-change-pipeline' into 'master'

Small fix in gitlab ci pipeline

See merge request !122
parents 28db116a edb4cfd8
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