deploy: more readable env type

This commit is contained in:
Fam Zheng 2025-11-03 07:22:37 +08:00
parent b9e2a80636
commit b5b62d3b4d

View File

@ -15,7 +15,13 @@ if [ -z "$OLD_IMAGE" ]; then
exit 1 exit 1
fi 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 set image deploy api emblem=$IMAGE
kubectl --kubeconfig $KUBECONFIG rollout status --timeout=1h deploy api kubectl --kubeconfig $KUBECONFIG rollout status --timeout=1h deploy api