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
Merge requests
!4
Add a --run-tag-pipeline flag to the release script
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add a --run-tag-pipeline flag to the release script
4-add-a-run-tag-pipeline-flag-to-the-release-script
into
master
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Rory Jennings
requested to merge
4-add-a-run-tag-pipeline-flag-to-the-release-script
into
master
4 years ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#4 (closed)
0
0
Merge request reports
Viewing commit
c47808fc
Show latest version
1 file
+
31
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c47808fc
feat: add run-tag-pipeline option to release.sh
· c47808fc
Rory Jennings
authored
4 years ago
src/release.sh
+
31
−
0
Options
@@ -10,4 +10,35 @@ cd "$CI_PROJECT_NAME"
standard-version
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
\ No newline at end of file
Loading