generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: temp fix to get rid of alert emails of defunct pids in the front…
…end due to pupeteer
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||