Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nexus-release-image
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Public
nexus-release-image
Commits
fe5ee5a8
Commit
fe5ee5a8
authored
4 years ago
by
Dean Lovett
Browse files
Options
Downloads
Plain Diff
Merge branch '4-add-a-run-tag-pipeline-flag-to-the-release-script' into 'master'
Add a --run-tag-pipeline flag to the release script Closes
#4
See merge request
!4
parents
f9c1b498
c47808fc
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Add a --run-tag-pipeline flag to the release script
Pipeline
#8190
passed
4 years ago
Stage: build
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/release.sh
+31
-0
31 additions, 0 deletions
src/release.sh
with
31 additions
and
0 deletions
src/release.sh
+
31
−
0
View file @
fe5ee5a8
...
@@ -10,4 +10,35 @@ cd "$CI_PROJECT_NAME"
...
@@ -10,4 +10,35 @@ cd "$CI_PROJECT_NAME"
standard-version
standard-version
echo
"Pushing new commit"
echo
"Pushing new commit"
# Check arguments for --run-tag-pipeline
while
:
;
do
case
$1
in
-t
|
--run-tag-pipeline
)
# Push the commit separately from the tag
git push
-o
ci.skip
# Grab the tag at this commit
TAG
=
$(
git tag
--points-at
HEAD
)
# Push the tag to origin
git push origin
"
$TAG
"
exit
;;
--
)
# End of options
shift
break
;;
-?
*
)
# Unrecognised option - ignore and continue
printf
'WARN: Unknown option (ignored): %s\n'
"
$1
"
>
&2
;;
*
)
# Default case, flag not found, break out and continue with the default command
break
esac
shift
done
# No flag passed, follow-tags instead
git push
--follow-tags
-o
ci.skip
git push
--follow-tags
-o
ci.skip
\ No newline at end of file
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