Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion codefresh/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ steps:
- cf_export IMAGE_TAG=${{CF_RELEASE_TAG}}
- cf_export GATEWAY_HOST=example.${{BASE_HOST}}

ask_for_permission:
type: pending-approval
title: Deploy release?

deploy_helmfile:
title: "Deploy with helmfile"
stage: "Deploy"
Expand All @@ -25,4 +29,8 @@ steps:
- "echo 'Preparing to deploy ${{CF_REPO_NAME}}:${{CF_RELEASE_TAG}}'"
# Deploy chart to cluster
- "/deploy/ctl --namespace=${{NAMESPACE}} blue-green"

when:
steps:
- name: ask_for_permission
on:
- approved
9 changes: 9 additions & 0 deletions codefresh/destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ stages:

steps:
main_clone:
type: pending-approval
title: Destory staging environment?

destroy:
title: Destroy namespace
stage: Destroy
image: cloudposse/build-harness:${{BUILD_HARNESS_VERSION}}
Expand All @@ -15,3 +19,8 @@ steps:
- "kubectl config use-context ${{KUBE_CONTEXT}}"
- "make helm/delete/namespace"
- "make helm/delete/namespace/empty"
when:
steps:
- name: main_clone
on:
- approved