File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,15 @@ steps:
3232 deploy_helmfile :
3333 title : " Deploy with helmfile"
3434 stage : " Deploy"
35- image : " ${{CF_DOCKER_REPO_URL}}/${{CF_REPO_NAME}} :${{CF_REVISION }}"
35+ image : " ${{IMAGE_NAME}} :${{IMAGE_TAG }}"
3636 working_directory : /deploy/
3737 commands :
3838 # Announce the release version
39- - " echo 'Preparing to deploy ${{CF_REPO_NAME }}:${{CF_RELEASE_TAG }}'"
39+ - " echo 'Preparing to deploy ${{IMAGE_NAME }}:${{IMAGE_TAG }}'"
4040 - " apk add --update curl make bash git kubectl@cloudposse helm@cloudposse=3.1.3-r0 helmfile@cloudposse"
4141 - " kubectl config use-context ${{KUBE_CONTEXT}}"
4242 # Deploy chart to cluster in a dedicated namespace
4343 - " helmfile --namespace ${{NAMESPACE}} --selector preview=true sync"
44- when :
45- steps :
46- - name : ask_for_permission
47- on :
48- - approved
4944
5045 send_slack_notification :
5146 title : Send notification to Slack channel
Original file line number Diff line number Diff line change @@ -47,6 +47,11 @@ steps:
4747 - STAGE=staging
4848 commands :
4949 - codefresh run ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/deploy-${STAGE} -b=${{CF_BRANCH}} -v CF_RELEASE_TAG=${{CF_RELEASE_TAG}} -v CF_PRERELEASE_FLAG=${{CF_PRERELEASE_FLAG}} -v STAGE=${STAGE}
50+ when :
51+ steps :
52+ - name : deploy_staging_confirmation
53+ on :
54+ - approved
5055
5156 deploy_production_confirmation :
5257 type : pending-approval
6065 environment :
6166 - STAGE=prod
6267 commands :
63- - codefresh run ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/deploy-${STAGE} -b=${{CF_BRANCH}} -v CF_RELEASE_TAG=${{CF_RELEASE_TAG}} -v CF_PRERELEASE_FLAG=${{CF_PRERELEASE_FLAG}} -v STAGE=${STAGE}
68+ - codefresh run ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/deploy-${STAGE} -b=${{CF_BRANCH}} -v CF_RELEASE_TAG=${{CF_RELEASE_TAG}} -v CF_PRERELEASE_FLAG=${{CF_PRERELEASE_FLAG}} -v STAGE=${STAGE}
69+ when :
70+ steps :
71+ - name : deploy_production_confirmation
72+ on :
73+ - approved
You can’t perform that action at this time.
0 commit comments