Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Exemple Mkdocs DSFR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Numérique et Écologie
Exemple Mkdocs DSFR
Commits
aa56f1b8
Verified
Commit
aa56f1b8
authored
2 months ago
by
Geoffrey Arthaud
Browse files
Options
Downloads
Patches
Plain Diff
Add update version job
parent
898ae6d9
No related branches found
No related tags found
No related merge requests found
Pipeline
#581585
passed
2 months ago
Stage: release
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+17
-0
17 additions, 0 deletions
.gitlab-ci.yml
with
17 additions
and
0 deletions
.gitlab-ci.yml
+
17
−
0
View file @
aa56f1b8
stages
:
-
release
-
deploy
variables
:
variables
:
UV_LINK_MODE
:
copy
UV_LINK_MODE
:
copy
UV_CACHE_DIR
:
.uv-cache
UV_CACHE_DIR
:
.uv-cache
...
@@ -12,6 +16,19 @@ default:
...
@@ -12,6 +16,19 @@ default:
after_script
:
after_script
:
-
uv cache prune --ci
-
uv cache prune --ci
release
:
stage
:
release
script
:
-
apk add git
-
uv add "mkdocs-dsfr>=${RELEASE_VERSION}"
-
git config user.email "[email protected]"
-
git config user.name "CI Pipeline"
-
git add ./pyproject.toml
-
git commit -m "Release version ${RELEASE_VERSION}"
-
git push https://gitlab-ci-token:${PUSH_TOKEN}@${CI_SERVER_HOST}/$CI_PROJECT_PATH.git HEAD:main --push-option="ci.skip"
rules
:
-
if
:
$RELEASE_VERSION
pages
:
pages
:
stage
:
deploy
stage
:
deploy
script
:
script
:
...
...
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