Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
project
drupal_cms
Commits
aef0e6d9
Commit
aef0e6d9
authored
6 months ago
by
Adam G-H
Browse files
Options
Downloads
Patches
Plain Diff
Subtree split job should overwrite the existing tag before pushing
parent
0722b175
No related branches found
No related tags found
No related merge requests found
Pipeline
#360519
passed
6 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
with
1 addition
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
aef0e6d9
...
@@ -249,7 +249,7 @@ subtree split:
...
@@ -249,7 +249,7 @@ subtree split:
-
git checkout -b split $COMMIT
-
git checkout -b split $COMMIT
-
git remote set-url origin $URL
-
git remote set-url origin $URL
-
git remote -v
-
git remote -v
-
if [[ -n "$CI_COMMIT_BRANCH" ]]; then git push origin HEAD:$CI_COMMIT_BRANCH; elif [[ -n "$CI_COMMIT_TAG" ]]; then git tag $CI_COMMIT_TAG && git push origin $CI_COMMIT_TAG; fi
-
if [[ -n "$CI_COMMIT_BRANCH" ]]; then git push origin HEAD:$CI_COMMIT_BRANCH; elif [[ -n "$CI_COMMIT_TAG" ]]; then git tag
--force
$CI_COMMIT_TAG && git push origin $CI_COMMIT_TAG; fi
rules
:
rules
:
# Only do this job if we're pushing to a release branch or tag, and aren't in a fork.
# Only do this job if we're pushing to a release branch or tag, and aren't in a fork.
-
if
:
($CI_COMMIT_BRANCH =~ /^([0-9]+\.)?[0-9]+\.x$/ || $CI_COMMIT_TAG) && $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
-
if
:
($CI_COMMIT_BRANCH =~ /^([0-9]+\.)?[0-9]+\.x$/ || $CI_COMMIT_TAG) && $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
...
...
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