30 lines · 652 B · Text
RawDownload
#!/bin/bash set -eusource script/lib/deploy-helpers.sh if [[ $# != 1 ]]; then  echo "Usage: $0 <production|staging>"  exit 1fi environment=$1url="$(url_for_environment $environment)"tag="$(tag_for_environment $environment)" target_zed_kube_cluster deployed_image_id=$(  kubectl \    --namespace=${environment} \    get deployment collab \    -o 'jsonpath={.spec.template.spec.containers[0].image}' \    | cut -d: -f2) echo "Deployed image version: $deployed_image_id" git fetch >/dev/nullif [[ "$(git rev-parse tags/$tag)" != $deployed_image_id ]]; then    echo "NOTE: tags/$tag $(git rev-parse tags/$tag) is not yet deployed"fi;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t