From 0f3784217c153b90fbb560a3a40ba0e3fb7f9702 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 15 May 2024 23:55:06 +0200 Subject: [PATCH] fix: !staging.sh + if in prod.sh --- manifests/bin/prod.sh | 6 ++++++ manifests/bin/staging.sh | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100755 manifests/bin/staging.sh diff --git a/manifests/bin/prod.sh b/manifests/bin/prod.sh index db50906..018bd3b 100755 --- a/manifests/bin/prod.sh +++ b/manifests/bin/prod.sh @@ -4,3 +4,9 @@ export NB_REPLICAS=1 . ./manifests/bin/deploy.sh + +if [ "$GITHUB_REF_NAME" = prod ]; then + kapply common/delegation.yaml + + kubectl rollout restart deployment delegation +fi diff --git a/manifests/bin/staging.sh b/manifests/bin/staging.sh deleted file mode 100755 index 27a60d6..0000000 --- a/manifests/bin/staging.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -e - -. ./manifests/bin/staging.sh - -kapply common/delegation.yaml - -kubectl rollout restart deployment delegation