Skip to content
Snippets Groups Projects

Small fix in gitlab ci pipeline

Merged Jiří Ježek requested to merge small-change-pipeline into master
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -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"
Loading