Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
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
ssa
workspaces
Commits
98fe620c
Commit
98fe620c
authored
1 year ago
by
Brittany Faciane
Browse files
Options
Downloads
Patches
Plain Diff
Make cleanup stage use same rules as rest of pipeline.
parent
f625017d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1452
Merge 2.8.2 to main
,
!1324
Make cleanup stage use same rules as rest of pipeline.
Pipeline
#9559
passed
1 year ago
Stage: pull-db
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/cleanup.template.yml
+25
-17
25 additions, 17 deletions
ci/cleanup.template.yml
with
25 additions
and
17 deletions
ci/cleanup.template.yml
+
25
−
17
View file @
98fe620c
...
...
@@ -7,20 +7,28 @@
"${NAME}:${IMAGE_TAG}"
-
docker image rm --force "${BASE_REGISTRY_URL}/${SERVICE_NAME}:${IMAGE_TAG}"
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_COMMIT_MESSAGE
=~
/\A(?i)-debug/'
when
:
never
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
||
$CI_COMMIT_BRANCH
=~
/(^[0-9]\.[0-9]|^[0-9]\.[0-9]\.[0-9])-DEVELOPMENT/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_BRANCH
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH
||
$CI_COMMIT_BRANCH
=~
/(^[0-9]\.[0-9]|^[0-9]\.[0-9]\.[0-9])-DEVELOPMENT/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_BRANCH
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
variables
:
IMAGE_TAG
:
$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
if
:
'
$CI_COMMIT_TAG
=~
/^end-of-sprint-[0-9]+/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
if
:
'
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
if
:
'
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+$/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
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