Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from DaPulse/fix/noamst/ci-staging
Browse files Browse the repository at this point in the history
Only deploy to production when running in production
  • Loading branch information
noamst-monday committed Sep 6, 2023
2 parents 2a8a02c + 2eb767d commit 2b1696c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codefresh/CI/pipeline-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ spec:
context: Dapulse-OAuth2
contexts:
- sandbox
variables:
- key: TRIGGER_TYPE
value: prod

stages: []
contexts: []
Expand Down
1 change: 1 addition & 0 deletions codefresh/CI/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ steps:
all:
isMaster: "'${{CF_BRANCH}}' == 'master'"
myCondition: deploy_staging.result == 'success'
isProd: '"${{TRIGGER_TYPE}}" == "prod"'


push_tag:
Expand Down

0 comments on commit 2b1696c

Please sign in to comment.