Skip to content

Commit

Permalink
Merge pull request #163 from jobtome-labs/fix/job-conditions
Browse files Browse the repository at this point in the history
Job Conditions Improvements and Fixes
  • Loading branch information
daniel-toncu authored Dec 17, 2024
2 parents 330a0d3 + 2bedfcc commit 9768b57
Show file tree
Hide file tree
Showing 60 changed files with 191 additions and 162 deletions.
2 changes: 1 addition & 1 deletion bucket-production.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include:
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/bucket-quality.yml'
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/bucket-quality.yml'

deploy:production:
extends: .deploy
Expand Down
9 changes: 5 additions & 4 deletions bucket-quality.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
include:
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/bucket.yml'
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/bucket.yml"

deploy:quality:
extends: .deploy
variables:
GOOGLE_KEY: ${GOOGLE_KEY_QUALITY}
BUCKET_NAME: ${BUCKET_NAME_QUALITY}
BUCKET_HEADERS: ${BUCKET_HEADERS_QUALITY}
only:
- master
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")
4 changes: 2 additions & 2 deletions cloudrun-production.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/docker.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/cloudrun.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/docker.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/cloudrun.yml"

deploy:production:
extends: .cloudrun:deploy
Expand Down
11 changes: 6 additions & 5 deletions cloudrun-quality.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/docker.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/cloudrun.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/docker.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/cloudrun.yml"

deploy:quality:
extends: .cloudrun:deploy
Expand Down Expand Up @@ -29,6 +29,7 @@ deploy:quality:
SECRETS: ${SECRETS_QUALITY}
INGRESS: ${INGRESS_QUALITY}

only:
- master
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")
10 changes: 5 additions & 5 deletions container-registry-push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/container-registry-push.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/container-registry-push.yml"

container-registry:push:quality:
extends: .container-registry:push
Expand All @@ -11,10 +11,10 @@ container-registry:push:quality:
SOURCE_IMAGE_TAG: ${CI_COMMIT_SHORT_SHA}
DESTINATION_IMAGE_TAG: ${CI_COMMIT_SHORT_SHA}

only:
- master
- main
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

container-registry:push:production:
extends: .container-registry:push
Expand Down
2 changes: 1 addition & 1 deletion dataflow-production.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include:
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/dataflow-quality.yml'
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/dataflow-quality.yml'

deploy:production:dataflow:
extends: .deploy:dataflow
Expand Down
10 changes: 5 additions & 5 deletions dataflow-quality.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include:
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/dataflow.yml'
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/dataflow.yml"

deploy:quality:dataflow:
extends: .deploy:dataflow
Expand All @@ -12,7 +12,7 @@ deploy:quality:dataflow:
EXTRA_ARGUMENTS: ${EXTRA_ARGUMENTS_QUALITY}
environment:
name: quality
only:
- master
- /^qa.+$/i

rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")
4 changes: 1 addition & 3 deletions docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/docker.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/docker.yml"

build:
stage: build
Expand Down Expand Up @@ -124,7 +124,6 @@ build:
fi
only:
- /^v.+$/i
- /^qa.+$/i
- master
- merge_requests
except:
Expand Down Expand Up @@ -220,7 +219,6 @@ build:cache:
fi
only:
- /^v.+$/i
- /^qa.+$/i
- master
- merge_requests
except:
Expand Down
2 changes: 1 addition & 1 deletion endpoints-multiregion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/endpoints-quality.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/endpoints-quality.yml"

# EUROPE

Expand Down
11 changes: 5 additions & 6 deletions endpoints-quality.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/endpoints.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/endpoints.yml"

endpoints:validate:quality:
extends: .endpoints:validate
Expand All @@ -15,7 +15,6 @@ endpoints:validate:quality:
- merge_requests
- master
- main
- /^qa.+$/i

except:
variables:
Expand All @@ -30,10 +29,10 @@ endpoints:deploy:quality:
ENDPOINTS_HOST: ${QUALITY_ENDPOINTS_HOST}
ENDPOINTS_TITLE: ${QUALITY_ENDPOINTS_TITLE}

only:
- master
- main
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

environment:
name: quality
Expand Down
2 changes: 1 addition & 1 deletion endpoints-regional.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/endpoints-quality.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/endpoints-quality.yml"

endpoints:validate:production:
extends: .endpoints:validate
Expand Down
2 changes: 1 addition & 1 deletion endpoints-validate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/endpoints.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/endpoints.yml"

endpoints:validate:
extends: .endpoints:validate
Expand Down
20 changes: 13 additions & 7 deletions helm-fullstack-multiregion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/helm-fullstack-quality.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/helm-fullstack-quality.yml"

# EUROPE

Expand Down Expand Up @@ -153,7 +153,8 @@ helm:diff:api:production:europe:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

helm:diff:web:production:europe:
extends: .helm:diff
Expand Down Expand Up @@ -184,7 +185,8 @@ helm:diff:web:production:europe:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

# AMERICA

Expand Down Expand Up @@ -337,7 +339,8 @@ helm:diff:api:production:america:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

helm:diff:web:production:america:
extends: .helm:diff
Expand Down Expand Up @@ -368,7 +371,8 @@ helm:diff:web:production:america:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

# ASIA

Expand Down Expand Up @@ -521,7 +525,8 @@ helm:diff:api:production:asia:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

helm:diff:web:production:asia:
extends: .helm:diff
Expand Down Expand Up @@ -552,4 +557,5 @@ helm:diff:web:production:asia:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")
38 changes: 22 additions & 16 deletions helm-fullstack-quality.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/docker.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/helm.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/docker.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/templates/helm.yml"

deploy:helm:api:quality:
extends: .deploy:quality:helm
Expand Down Expand Up @@ -33,9 +33,10 @@ deploy:helm:api:quality:
resource_group: quality-api

only:
- master
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

deploy:helm:web:quality:
extends: .deploy:quality:helm
Expand Down Expand Up @@ -67,9 +68,10 @@ deploy:helm:web:quality:
resource_group: quality-web

only:
- master
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

verify:api:quality:
extends: .verify
Expand All @@ -96,9 +98,10 @@ verify:api:quality:
fi
done
only:
- master
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

verify:web:quality:
extends: .verify
Expand All @@ -125,9 +128,10 @@ verify:web:quality:
fi
done
only:
- master
- /^qa.+$/i
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ "/^qa-.+$/i") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

helm:diff:api:quality:
extends: .helm:diff
Expand Down Expand Up @@ -158,7 +162,8 @@ helm:diff:api:quality:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

helm:diff:web:quality:
extends: .helm:diff
Expand Down Expand Up @@ -189,4 +194,5 @@ helm:diff:web:quality:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")
8 changes: 5 additions & 3 deletions helm-fullstack-regional.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/helm-fullstack-quality.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/helm-fullstack-quality.yml"

deploy:helm:api:production:
extends: .deploy:production:helm
Expand Down Expand Up @@ -148,7 +148,8 @@ helm:diff:api:production:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

helm:diff:web:production:
extends: .helm:diff
Expand Down Expand Up @@ -178,4 +179,5 @@ helm:diff:web:production:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")
11 changes: 7 additions & 4 deletions helm-multiregion.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/helm-quality.yml"
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.38.0/helm-quality.yml"

# EUROPE

Expand Down Expand Up @@ -87,7 +87,8 @@ helm:diff:production:europe:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

# AMERICA

Expand Down Expand Up @@ -174,7 +175,8 @@ helm:diff:production:america:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")

# ASIA

Expand Down Expand Up @@ -261,4 +263,5 @@ helm:diff:production:asia:
done
rules:
- if: '$ENABLE_HELM_DIFF == "true" && $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "merge_request_event")
- if: ($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && ($CI_PIPELINE_SOURCE == "parent_pipeline")
Loading

0 comments on commit 9768b57

Please sign in to comment.