Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LISA Instrument
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LISA Simulation
LISA Instrument
Merge requests
!138
Resolve "Automatically tag latest version"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Automatically tag latest version"
110-automatically-tag-latest-version
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Jean-Baptiste Bayle
requested to merge
110-automatically-tag-latest-version
into
master
2 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#110 (closed)
Automatically replaces 'latest' tag to point to latest release
Edited
2 years ago
by
Jean-Baptiste Bayle
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c84b7d1b
1 commit,
2 years ago
1 file
+
13
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
13
−
0
Options
@@ -37,6 +37,19 @@ dist:
paths
:
-
dist
tag-latest
:
stage
:
deploy
image
:
alpine/git
script
:
-
git config user.email "${GITLAB_USER_EMAIL}"
-
git config user.name "${GITLAB_USER_NAME}"
-
git remote add tag-origin https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.in2p3.fr/${CI_PROJECT_PATH}
-
git push --delete tag-origin latest
-
git tag latest
-
git push tag-origin latest
rules
:
-
if
:
'
$CI_COMMIT_TAG
=~
/^v\d+(?:\.\d+){0,2}$/'
pypi
:
stage
:
deploy
script
:
Loading