Skip to content

Commit 579bc9c

Browse files
committed
save state after successful deploy
1 parent 864e8f5 commit 579bc9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deploy/ctl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ tasks:
7272
new_color={{ get "color" | get }}
7373
echo "Config file is ${config}"
7474
echo "Updating [${KUBE_CONTEXT}] context {{ get "namespace" }} namespace: $cur_color => $new_color"
75-
echo "$new_color" > ${config}
7675
export COLOR=$new_color
7776
# Deploy the app and update istio virtual service
78-
helmfile --namespace {{ get "namespace" }} sync
77+
helmfile --namespace {{ get "namespace" }} sync
78+
echo "$new_color" > ${config}

deploy/releases/app.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ releases:
4040
enabled: true
4141
env:
4242
# Color to deploy
43-
#COLOR: "#0099ff" # Blue
44-
COLOR: "#009900" # Green
43+
COLOR: "#0099ff" # Blue
44+
#COLOR: "#009900" # Green
4545

4646
# Service endpoint
4747
service:

0 commit comments

Comments
 (0)