deploy: more readable env type
This commit is contained in:
parent
b9e2a80636
commit
b5b62d3b4d
@ -15,7 +15,13 @@ if [ -z "$OLD_IMAGE" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
curl -X POST https://euphon-alert-23358.famzheng.workers.dev/ -d "Deploying Emblem API with $KUBECONFIG: $OLD_IMAGE -> $IMAGE"
|
||||
if echo $KUBECONFIG | grep -q "kubeconfig.dev"; then
|
||||
EMBLEM_ENV="dev"
|
||||
else
|
||||
EMBLEM_ENV="prod"
|
||||
fi
|
||||
|
||||
curl -X POST https://euphon-alert-23358.famzheng.workers.dev/ -d "Deploying Emblem API to $EMBLEM_ENV: $OLD_IMAGE -> $IMAGE"
|
||||
|
||||
kubectl --kubeconfig $KUBECONFIG set image deploy api emblem=$IMAGE
|
||||
kubectl --kubeconfig $KUBECONFIG rollout status --timeout=1h deploy api
|
||||
Loading…
x
Reference in New Issue
Block a user