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