From f6890fbbe30de6af9f96bdde7cf66f78f80b0456 Mon Sep 17 00:00:00 2001 From: Om Mishra <32200996+mishraomp@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:58:30 -0700 Subject: [PATCH] fix: temp fix to get rid of alert emails of defunct pids in the frontend due to pupeteer --- .github/workflows/scheduled.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/scheduled.yml diff --git a/.github/workflows/scheduled.yml b/.github/workflows/scheduled.yml new file mode 100644 index 0000000..f9dc201 --- /dev/null +++ b/.github/workflows/scheduled.yml @@ -0,0 +1,27 @@ +name: Scheduled + +on: + schedule: [cron: "0 9 * * *"] # every midnight + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +jobs: + rollout_frontend: + name: Rollout frontend + environment: prod + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Rollout frontend to remove defunt pids # temporary solution + shell: bash + run: | + # Login to OpenShift and select project + oc login --token=${{ secrets.OC_TOKEN }} --server=${{ secrets.OC_SERVER }} + oc project ${{ secrets.OC_NAMESPACE }} + oc rollout latest dc/esra-prod-frontend + oc rollout status dc/esra-prod-frontend + +