Skip to content

Commit b82db8b

Browse files
committed
Add deployment pipelines
1 parent 7415a90 commit b82db8b

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

codefresh/deploy.yaml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ steps:
1818
- cf_export COLOR=blue
1919
- cf_export CF_BUILD_DATE_TIME=$(date +"%Y-%m-%d/%H:%M:%S" -d @$((${{CF_BUILD_TIMESTAMP}}/1000)))
2020

21-
ask_for_permission:
22-
type: pending-approval
23-
title: Deploy release?
24-
stage: Prepare
25-
2621
wait:
2722
title: Wait
2823
stage: Prepare
@@ -77,12 +72,6 @@ steps:
7772
- GITHUB_DESCRIPTION=Deployed to ${{NAMESPACE}} by @${{CF_BUILD_INITIATOR}}
7873
- GITHUB_TARGET_URL=${{APP_SCHEME}}://${{APP_HOST}}/dashboard
7974

80-
when:
81-
condition:
82-
all:
83-
deployLabel: "match('${{CF_PULL_REQUEST_LABELS}}', 'deploy', false) == true"
84-
githubNotificationsEnabled: "'${{GITHUB_NOTIFICATIONS_ENABLED}}' == 'true'"
85-
8675
add_url_to_comment_on_commit:
8776
title: Comment on commit with the deployed URL
8877
stage: Deploy
@@ -93,8 +82,4 @@ add_url_to_comment_on_commit:
9382
- GITHUB_REPO=${{CF_REPO_NAME}}
9483
- GITHUB_COMMENT_TYPE=commit
9584
- GITHUB_COMMIT_SHA=${{CF_SHORT_REVISION}}
96-
- 'GITHUB_COMMENT=Version ${{CF_SHORT_REVISION}} deployed by @${{CF_BUILD_INITIATOR}} to the [`${{NAMESPACE}}`](${{APP_SCHEME}}://${{APP_HOST}}/dashboard) namespace on `${{STAGE}}` at ${{CF_BUILD_DATE_TIME}}'
97-
when:
98-
condition:
99-
all:
100-
deployLabel: "match('${{CF_PULL_REQUEST_LABELS}}', 'deploy', false) == true"
85+
- 'GITHUB_COMMENT=Version ${{CF_SHORT_REVISION}} deployed by @${{CF_BUILD_INITIATOR}} to the [`${{NAMESPACE}}`](${{APP_SCHEME}}://${{APP_HOST}}/dashboard) namespace on `${{STAGE}}` at ${{CF_BUILD_DATE_TIME}}'

codefresh/preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ steps:
195195
- GITHUB_REPO=${{CF_REPO_NAME}}
196196
- GITHUB_COMMENT_TYPE=commit
197197
- GITHUB_COMMIT_SHA=${{CF_SHORT_REVISION}}
198-
- 'GITHUB_COMMENT=Version ${{CF_SHORT_REVISION}} deployed by @${{CF_BUILD_INITIATOR}} to the [`${{NAMESPACE}}`](${{APP_SCHEME}}://${{APP_HOST}}/dashboard) namespace on `${{STAGE}}` at ${{CF_BUILD_DATE_TIME}}<br/>![:thumbsup:](https://cloudposse.com/urand/familyguy.gif)'
198+
- 'GITHUB_COMMENT=Version ${{CF_SHORT_REVISION}} deployed by @${{CF_BUILD_INITIATOR}} to the [`${{NAMESPACE}}`](${{APP_SCHEME}}://${{APP_HOST}}/dashboard) namespace on `${{STAGE}}` at ${{CF_BUILD_DATE_TIME}}<details>![:thumbsup:](https://cloudposse.com/urand/familyguy.gif)</details>'
199199
when:
200200
condition:
201201
all:

codefresh/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ steps:
4040
stage: Staging
4141

4242
deploy_staging:
43-
title: Deploy to Staging
43+
title: Releasing to Staging
4444
stage: "Staging"
4545
image: 'codefresh/cli:latest'
4646
environment:
@@ -54,7 +54,7 @@ steps:
5454
stage: Production
5555

5656
deploy_production:
57-
title: Deploy Release to Production
57+
title: Releasing to Production
5858
stage: "Production"
5959
image: 'codefresh/cli:latest'
6060
environment:

0 commit comments

Comments
 (0)