Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservice
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
masi9606
webservice
Commits
58aa8a3c
Commit
58aa8a3c
authored
9 months ago
by
schnarkus
Browse files
Options
Downloads
Patches
Plain Diff
tag main as stable
parent
94f36703
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#59209
failed
9 months ago
Stage: test
Stage: tag
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+10
-0
10 additions, 0 deletions
.gitlab-ci.yml
with
10 additions
and
0 deletions
.gitlab-ci.yml
+
10
−
0
View file @
58aa8a3c
...
...
@@ -6,10 +6,13 @@ workflow:
-
when
:
never
variables
:
version
:
0.0.$CI_PIPELINE_IID
stable_branch
:
main
release_tag_prefix
:
v
stages
:
-
test
-
build
-
publish
-
tag
test_job
:
stage
:
test
image
:
public.ecr.aws/docker/library/golang:1.21
...
...
@@ -50,3 +53,10 @@ publish_job:
--upload-file "./$file" \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/${version}/$file"
done
job_tag_stable_branch
:
stage
:
tag
only
:
-
main
script
:
-
git tag "$release_tag_prefix$version"
-
git push origin "$release_tag_prefix$version"
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