From 06ae3583207ccf74b17077755415680160a03007 Mon Sep 17 00:00:00 2001 From: cditcher Date: Mon, 30 Dec 2024 14:50:59 -0800 Subject: [PATCH] Fixed missing flags on logs --- .../build.from.master.branch.deploy.to.dev.yml | 15 ++++++++++++--- .github/workflows/deploy_test.yml | 6 +++--- .github/workflows/deploy_to_prod.yml | 6 +++--- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.from.master.branch.deploy.to.dev.yml b/.github/workflows/build.from.master.branch.deploy.to.dev.yml index a31a4026..d4ed2f34 100644 --- a/.github/workflows/build.from.master.branch.deploy.to.dev.yml +++ b/.github/workflows/build.from.master.branch.deploy.to.dev.yml @@ -265,17 +265,26 @@ jobs: # Start rollout (if necessary) and follow it + + oc rollout latest dc/${{ env.APP_NAME_FRONTEND }} 2> /dev/null || true && echo "Rollout Front End in progress" + oc rollout latest dc/${{ env.APP_NAME_API }} 2> /dev/null || true && echo "Rollout ECAS API in progress" + oc rollout latest dc/${{ env.APP_NAME_CAS }} 2> /dev/null || true && echo "Rollout CAS API in progress" - oc logs dc/${{ env.APP_NAME_FRONTEND }} - oc logs dc/${{ env.APP_NAME_API }} - oc logs dc/${{ env.APP_NAME_CAS }} + oc logs -f dc/${{ env.APP_NAME_FRONTEND }} + + oc logs -f dc/${{ env.APP_NAME_API }} + + oc logs -f dc/${{ env.APP_NAME_CAS }} # Get status, returns 0 if rollout is successful + oc rollout status dc/${{ env.APP_NAME_FRONTEND }} + oc rollout status dc/${{ env.APP_NAME_API }} + oc rollout status dc/${{ env.APP_NAME_CAS }} diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml index 78f686ea..e5cf1daa 100644 --- a/.github/workflows/deploy_test.yml +++ b/.github/workflows/deploy_test.yml @@ -128,11 +128,11 @@ jobs: oc rollout latest dc/${{ env.APP_NAME_CAS }} 2> /dev/null || true && echo "Rollout CAS API in progress" - oc logs dc/${{ env.APP_NAME_FRONTEND }} + oc logs -f dc/${{ env.APP_NAME_FRONTEND }} - oc logs dc/${{ env.APP_NAME_API }} + oc logs -f dc/${{ env.APP_NAME_API }} - oc logs dc/${{ env.APP_NAME_CAS }} + oc logs -f dc/${{ env.APP_NAME_CAS }} # Get status, returns 0 if rollout is successful diff --git a/.github/workflows/deploy_to_prod.yml b/.github/workflows/deploy_to_prod.yml index 4ace308a..3417e784 100644 --- a/.github/workflows/deploy_to_prod.yml +++ b/.github/workflows/deploy_to_prod.yml @@ -129,11 +129,11 @@ jobs: oc rollout latest dc/${{ env.APP_NAME_CAS }} 2> /dev/null || true && echo "Rollout CAS API in progress" - oc logs dc/${{ env.APP_NAME_FRONTEND }} + oc logs -f dc/${{ env.APP_NAME_FRONTEND }} - oc logs dc/${{ env.APP_NAME_API }} + oc logs -f dc/${{ env.APP_NAME_API }} - oc logs dc/${{ env.APP_NAME_CAS }} + oc logs -f dc/${{ env.APP_NAME_CAS }} # Get status, returns 0 if rollout is successful