Skip to content

Commit 3db815a

Browse files
committed
Move RELEASE_NAME
1 parent 4952c44 commit 3db815a

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

codefresh/deploy.yaml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,6 @@ steps:
1414
- cf_export IMAGE_NAME=${{CF_DOCKER_REPO_URL}}/${{CF_REPO_NAME}}
1515
- cf_export IMAGE_TAG=${{CF_RELEASE_TAG}}
1616
- cf_export GATEWAY_HOST=example.${{BASE_HOST}}
17-
- cf_export RELEASE_NAME=example-${{COLOR}}
18-
19-
set_github_deployment_status_to_pending:
20-
title: Set GitHub deployment status to "pending"
21-
stage: Deploy
22-
image: cloudposse/github-status-updater
23-
environment:
24-
- GITHUB_ACTION=update_state
25-
- GITHUB_TOKEN=${{GITHUB_TOKEN}}
26-
- GITHUB_OWNER=${{CF_REPO_OWNER}}
27-
- GITHUB_REPO=${{CF_REPO_NAME}}
28-
- GITHUB_REF=${{CF_REVISION}}
29-
- GITHUB_CONTEXT=${{STAGE}}-environment
30-
- GITHUB_STATE=pending
31-
- GITHUB_DESCRIPTION=Deploying changes to ${{NAMESPACE}} namespace
32-
- GITHUB_TARGET_URL=${{ATLANTIS_ATLANTIS_URL}}
33-
when:
34-
condition:
35-
all:
36-
githubNotificationsEnabled: "'${{GITHUB_NOTIFICATIONS_ENABLED}}' == 'true'"
3717

3818
deploy_helmfile:
3919
title: "Deploy with helmfile"
@@ -46,21 +26,3 @@ steps:
4626
# Deploy chart to cluster
4727
- "/deploy/ctl --namespace=${{NAMESPACE}} blue-green"
4828

49-
set_github_deployment_status_to_success:
50-
title: Set GitHub deployment status to "success"
51-
stage: "Deploy"
52-
image: cloudposse/github-status-updater
53-
environment:
54-
- GITHUB_ACTION=update_state
55-
- GITHUB_TOKEN=${{GITHUB_TOKEN}}
56-
- GITHUB_OWNER=${{CF_REPO_OWNER}}
57-
- GITHUB_REPO=${{CF_REPO_NAME}}
58-
- GITHUB_REF=${{CF_REVISION}}
59-
- GITHUB_CONTEXT=${{STAGE}}-environment
60-
- GITHUB_STATE=success
61-
- GITHUB_DESCRIPTION=Deployed to ${{NAMESPACE}} namespace
62-
- GITHUB_TARGET_URL=${{ATLANTIS_ATLANTIS_URL}}
63-
when:
64-
condition:
65-
all:
66-
githubNotificationsEnabled: "'${{GITHUB_NOTIFICATIONS_ENABLED}}' == 'true'"

deploy/ctl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ tasks:
9292
echo "Updating [${KUBE_CONTEXT}] context {{ get "namespace" }} namespace: $cur_color => $new_color"
9393
export COLOR=$new_color
9494
export APP_HOST=${COLOR}.example.${BASE_HOST}
95+
export RELEASE_NAME=example-${COLOR}
9596
# Deploy the app and update istio virtual service
9697
helmfile --namespace {{ get "namespace" }} sync
9798
echo "$new_color" > ${config}

0 commit comments

Comments
 (0)