Skip to content

Commit 29f91a7

Browse files
authored
Add approval steps (#4)
1 parent 5167ef0 commit 29f91a7

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

codefresh/deploy.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ steps:
1515
- cf_export IMAGE_TAG=${{CF_RELEASE_TAG}}
1616
- cf_export GATEWAY_HOST=example.${{BASE_HOST}}
1717

18+
ask_for_permission:
19+
type: pending-approval
20+
title: Deploy release?
21+
1822
deploy_helmfile:
1923
title: "Deploy with helmfile"
2024
stage: "Deploy"
@@ -25,4 +29,8 @@ steps:
2529
- "echo 'Preparing to deploy ${{CF_REPO_NAME}}:${{CF_RELEASE_TAG}}'"
2630
# Deploy chart to cluster
2731
- "/deploy/ctl --namespace=${{NAMESPACE}} blue-green"
28-
32+
when:
33+
steps:
34+
- name: ask_for_permission
35+
on:
36+
- approved

codefresh/destroy.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ stages:
55

66
steps:
77
main_clone:
8+
type: pending-approval
9+
title: Destory staging environment?
10+
11+
destroy:
812
title: Destroy namespace
913
stage: Destroy
1014
image: cloudposse/build-harness:${{BUILD_HARNESS_VERSION}}
@@ -15,3 +19,8 @@ steps:
1519
- "kubectl config use-context ${{KUBE_CONTEXT}}"
1620
- "make helm/delete/namespace"
1721
- "make helm/delete/namespace/empty"
22+
when:
23+
steps:
24+
- name: main_clone
25+
on:
26+
- approved

0 commit comments

Comments
 (0)