mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
Add what-is-deployed-script
This commit is contained in:
parent
cedc0f64d5
commit
0c9ceb51e6
1 changed files with 17 additions and 0 deletions
17
script/what-is-deployed
Executable file
17
script/what-is-deployed
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
source script/lib/deploy-helpers.sh
|
||||
|
||||
if [[ $# < 1 ]]; then
|
||||
echo "Usage: $0 <production|staging|preview>"
|
||||
exit 1
|
||||
fi
|
||||
ZED_KUBE_NAMESPACE=$1
|
||||
|
||||
export_vars_for_environment $ZED_KUBE_NAMESPACE
|
||||
target_zed_kube_cluster
|
||||
|
||||
IMAGE_ID=$(kubectl --namespace=${ZED_KUBE_NAMESPACE} get deployment collab -o 'jsonpath={.spec.template.spec.containers[0].image}')
|
||||
|
||||
echo "Deployed image on ${ZED_KUBE_NAMESPACE}:" $(version_for_image_id $IMAGE_ID)
|
Loading…
Reference in a new issue