diff --git a/codefresh/deploy.yaml b/codefresh/deploy.yaml index 3ed7a08..5057333 100644 --- a/codefresh/deploy.yaml +++ b/codefresh/deploy.yaml @@ -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" @@ -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 \ No newline at end of file diff --git a/codefresh/destroy.yaml b/codefresh/destroy.yaml index 58730f4..532f008 100644 --- a/codefresh/destroy.yaml +++ b/codefresh/destroy.yaml @@ -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}} @@ -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 \ No newline at end of file