Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Google Cloud Platform
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Renaud CADEL
Google Cloud Platform
Commits
397bd80e
Commit
397bd80e
authored
2 years ago
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
chore: use workflow rules
parent
8a34c537
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-gcloud.yml
+8
-15
8 additions, 15 deletions
templates/gitlab-ci-gcloud.yml
with
8 additions
and
15 deletions
templates/gitlab-ci-gcloud.yml
+
8
−
15
View file @
397bd80e
...
@@ -13,6 +13,14 @@
...
@@ -13,6 +13,14 @@
# program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301, USA.
# Floor, Boston, MA 02110-1301, USA.
# =========================================================================================
# =========================================================================================
# default workflow rules
workflow
:
rules
:
# exclude merge requests
-
if
:
$CI_MERGE_REQUEST_ID
when
:
never
-
when
:
always
variables
:
variables
:
# variabilized tracking image
# variabilized tracking image
TBC_TRACKING_IMAGE
:
"
$CI_REGISTRY/to-be-continuous/tools/tracking:master"
TBC_TRACKING_IMAGE
:
"
$CI_REGISTRY/to-be-continuous/tools/tracking:master"
...
@@ -408,9 +416,6 @@ gcp-review:
...
@@ -408,9 +416,6 @@ gcp-review:
on_stop
:
gcp-cleanup-review
on_stop
:
gcp-cleanup-review
resource_group
:
review/$CI_COMMIT_REF_NAME
resource_group
:
review/$CI_COMMIT_REF_NAME
rules
:
rules
:
# exclude merge requests
-
if
:
$CI_MERGE_REQUEST_ID
when
:
never
# exclude tags
# exclude tags
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
when
:
never
when
:
never
...
@@ -433,9 +438,6 @@ gcp-cleanup-review:
...
@@ -433,9 +438,6 @@ gcp-cleanup-review:
action
:
stop
action
:
stop
resource_group
:
review/$CI_COMMIT_REF_NAME
resource_group
:
review/$CI_COMMIT_REF_NAME
rules
:
rules
:
# exclude merge requests
-
if
:
$CI_MERGE_REQUEST_ID
when
:
never
# exclude tags
# exclude tags
-
if
:
$CI_COMMIT_TAG
-
if
:
$CI_COMMIT_TAG
when
:
never
when
:
never
...
@@ -457,9 +459,6 @@ gcp-integration:
...
@@ -457,9 +459,6 @@ gcp-integration:
name
:
integration
name
:
integration
resource_group
:
integration
resource_group
:
integration
rules
:
rules
:
# exclude merge requests
-
if
:
$CI_MERGE_REQUEST_ID
when
:
never
# only on integration branch(es), with $GCP_INTEG_PROJECT set
# only on integration branch(es), with $GCP_INTEG_PROJECT set
-
if
:
'
$GCP_INTEG_PROJECT
&&
$CI_COMMIT_REF_NAME
=~
$INTEG_REF'
-
if
:
'
$GCP_INTEG_PROJECT
&&
$CI_COMMIT_REF_NAME
=~
$INTEG_REF'
...
@@ -476,9 +475,6 @@ gcp-staging:
...
@@ -476,9 +475,6 @@ gcp-staging:
name
:
staging
name
:
staging
resource_group
:
staging
resource_group
:
staging
rules
:
rules
:
# exclude merge requests
-
if
:
$CI_MERGE_REQUEST_ID
when
:
never
# only on production branch(es), with $GCP_STAGING_PROJECT set
# only on production branch(es), with $GCP_STAGING_PROJECT set
-
if
:
'
$GCP_STAGING_PROJECT
&&
$CI_COMMIT_REF_NAME
=~
$PROD_REF'
-
if
:
'
$GCP_STAGING_PROJECT
&&
$CI_COMMIT_REF_NAME
=~
$PROD_REF'
...
@@ -497,9 +493,6 @@ gcp-production:
...
@@ -497,9 +493,6 @@ gcp-production:
name
:
production
name
:
production
resource_group
:
production
resource_group
:
production
rules
:
rules
:
# exclude merge requests
-
if
:
$CI_MERGE_REQUEST_ID
when
:
never
# exclude non-production branches
# exclude non-production branches
-
if
:
'
$CI_COMMIT_REF_NAME
!~
$PROD_REF'
-
if
:
'
$CI_COMMIT_REF_NAME
!~
$PROD_REF'
when
:
never
when
:
never
...
...
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