From a52d27e750379a53cd77d4a3213a078744d38f5f Mon Sep 17 00:00:00 2001 From: ldeluigi <44567586+ldeluigi@users.noreply.github.com> Date: Fri, 23 Aug 2024 12:56:05 +0200 Subject: [PATCH] Add rollout phase for discord bot --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bdf544d..b08a1382 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -368,8 +368,11 @@ jobs: working-directory: ${{ steps.migration-artifacts.outputs.download-path }} run: | export KUBECONFIG=spellbookkubeconfig.yaml - kubectl rollout restart deployment/spellbook-api -n spellbook - timeout ${KUBECTL_TIMEOUT} kubectl rollout status deployment/spellbook-api -n spellbook + declare -a deployments=("spellbook-api" "spellbook-discord-bot") + for deployment in "${deployments[@]}"; do + kubectl rollout restart deployment/$deployment -n spellbook + timeout ${KUBECTL_TIMEOUT} kubectl rollout status deployment/$deployment -n spellbook + done open-api: