Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
documentation
Merge requests
!122
Small fix in gitlab ci pipeline
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Small fix in gitlab ci pipeline
small-change-pipeline
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Jiří Ježek
requested to merge
small-change-pipeline
into
master
11 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Added variable for ssh port
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
edb4cfd8
1 commit,
11 months ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
4
−
3
Options
@@ -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