From b9815abb993fa10288193e2f2ed2ff2708cb4fb5 Mon Sep 17 00:00:00 2001 From: Jashandeep Sohi <95394050+jashan-lco@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:18:45 -0800 Subject: [PATCH] remove cd update scripts --- cd.nix | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) diff --git a/cd.nix b/cd.nix index e48d2c3..4fff8cd 100644 --- a/cd.nix +++ b/cd.nix @@ -32,52 +32,5 @@ kustomize build prod/ --output output/prod/manifest.yaml popd ''; - - scripts.cd-update-staging.exec = '' - set -ex - - if test -z "$1"; then - echo "first argument should be an absolute path to the skaffold build output" - exit 1 - fi - - if test -z "$2"; then - echo "second argument should be the git commit hash" - exit 1 - fi - - pushd $DEVENV_ROOT - - pushd staging/ - - kpt pkg update --strategy force-delete-replace base@$2 - - if test -f "$1"; then - pushd cd-set-images - sh -xe <(cat $1 | jq -r '.builds[] | "kustomize edit set image \(.imageName)=\(.tag)"') - popd - fi - popd - - kustomize build staging/ --output output/staging/manifest.yaml - popd - ''; - - scripts.cd-update-prod.exec = '' - set -ex - - if test -z "$1"; then - echo "first argument should be git commit hash of staging" - exit 1 - fi - - pushd $DEVENV_ROOT - - kpt pkg update --strategy force-delete-replace prod/base@$2 - kpt pkg update --strategy force-delete-replace prod/cd-set-images@$2 - - kustomize build prod/ --output output/prod/manifest.yaml - popd - ''; }; }