Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 741fb72

Browse files
authored
Remove old release and use Blue/Green as default (#3305)
Switch to blue/green deployment as a default release strategy on staging and production Before removing the old resources on default namespace we need to merge this
1 parent 59784eb commit 741fb72

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

.circleci/config.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -114,26 +114,8 @@ commands:
114114
steps:
115115
- k8s/install-kubectl
116116
- run:
117-
name: Deploying to k8s cluster for service binary-bot-beta
117+
name: Deploying to k8s cluster for service << parameters.k8s_namespace >>
118118
command: |
119-
for SERVER_ID in {1..5}
120-
do
121-
KUBE_SERVER_REF="KUBE_SERVER_$SERVER_ID"
122-
SERVICEACCOUNT_TOKEN_REF="SERVICEACCOUNT_TOKEN_$SERVER_ID"
123-
CA_CRT_REF="CA_CRT_$SERVER_ID"
124-
if [ ! -z "${!KUBE_SERVER_REF}" ]
125-
then
126-
echo "Deploying to cluster $SERVER_ID"
127-
CA_CRT="${!CA_CRT_REF}"
128-
KUBE_SERVER="${!KUBE_SERVER_REF}"
129-
SERVICEACCOUNT_TOKEN="${!SERVICEACCOUNT_TOKEN_REF}"
130-
deployment_target="bot-binary-com"
131-
[ "<< parameters.target >>" == "beta" ] && deployment_target="bot-beta-binary-com"
132-
echo $CA_CRT | base64 --decode > ca.crt
133-
kubectl --server=${KUBE_SERVER} --certificate-authority=ca.crt --token=$SERVICEACCOUNT_TOKEN set image deployment/${deployment_target} ${deployment_target}=${DOCKHUB_ORGANISATION}/binary-static-bot:${CIRCLE_TAG}
134-
fi
135-
done
136-
137119
export NAMESPACE=<< parameters.k8s_namespace >>
138120
git clone https://github.com/binary-com/devops-ci-scripts
139121
cd devops-ci-scripts/k8s-build_tools
@@ -191,6 +173,7 @@ jobs:
191173
target: "production"
192174
k8s_namespace: "bot-binary-com-production"
193175
k8s_version: ${CIRCLE_TAG}
176+
- notify_slack
194177

195178
workflows:
196179
test:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy