Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MKDocs Template
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Analyze
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
PAGoDA
Tools
MKDocs Template
Commits
fdd97a26
Verified
Commit
fdd97a26
authored
3 years ago
by
Romain Deville
Browse files
Options
Downloads
Patches
Plain Diff
Fix user_config docs/.gitlab-ci.yml when no git TAG
parent
4d343294
No related branches found
No related tags found
No related merge requests found
Pipeline
#9432
passed with stages
in 12 minutes and 54 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
user_config/docs/.gitlab-ci.yml
+4
-3
4 additions, 3 deletions
user_config/docs/.gitlab-ci.yml
with
4 additions
and
3 deletions
user_config/docs/.gitlab-ci.yml
+
4
−
3
View file @
fdd97a26
...
...
@@ -316,11 +316,12 @@ script_deploy_html: &script_deploy_html
-
*before_script_prepare_deployment
script
:
-
git fetch --all
-
export LAST_TAG="$(git describe --tags `git rev-list --tags --max-count=1`)"
-
if
[[ -z "${LAST_TAG}" ]]
-
|
if
! git describe --tags `git rev-list --tags --max-count=1`
then
export LAST_TAG="-1.-1"
else
export LAST_TAG="$(git describe --tags `git rev-list --tags --max-count=1`)"
export LAST_TAG="${LAST_TAG/v/}"
export LAST_TAG="${LAST_TAG%.*}"
fi
...
...
@@ -360,7 +361,7 @@ script_deploy_html: &script_deploy_html
then
cp tmp/${RSYNC_PATH}/versions.json tmp/${RSYNC_PATH}/../versions.json
fi
-
ln -s "${LAST_TAG}" "latest"
-
ln -s
--
"${LAST_TAG}" "latest"
-
mv "latest" "tmp/${PROJECT_PATH}"
-
echo -e "
<!DOCTYPE html>\n
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment