From 01fc919651676093abe46bddc07cb83a3b536c7a Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 30 Jun 2021 15:52:49 -0400 Subject: [PATCH] Deal with the testing/staging mismatch --- nixos/modules/update-deployment | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/nixos/modules/update-deployment b/nixos/modules/update-deployment index 43f1ad91..82bbc212 100755 --- a/nixos/modules/update-deployment +++ b/nixos/modules/update-deployment @@ -6,11 +6,23 @@ set -euxo pipefail GRIDNAME=$1 shift -if [ "${GRIDNAME}" = "local" ]; then - BRANCH="323.continuous-deployment" -else - BRANCH="${GRIDNAME}" -fi +case "${GRIDNAME}" in + "local") + BRANCH="323.continuous-deployment" + ;; + + "testing") + BRANCH="staging" + ;; + + "production") + BRANCH="production" + ;; + + *) + echo "Unknown grid: ${GRIDNAME}" + exit 1 +esac CHECKOUT="${HOME}/PrivateStorageio" REPO="https://whetstone.privatestorage.io/privatestorage/PrivateStorageio.git" -- GitLab