Skip to content

Commit

Permalink
Merge pull request #164 from bcgov/fix/defunct-pid-temp
Browse files Browse the repository at this point in the history
fix: temp fix to get rid of alert emails of defunct pids in the frontend due to pupeteer
  • Loading branch information
mishraomp authored Aug 13, 2024
2 parents 6339564 + f6890fb commit 353d2c8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 353d2c8

Please sign in to comment.