Skip to content

Commit

Permalink
Merge pull request #23 from StatCan/124-nightly-builds
Browse files Browse the repository at this point in the history
feat(nightly builds):
  • Loading branch information
Jose-Matsuda authored Sep 5, 2023
2 parents d704a9d + b07baf5 commit 228582d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
#
# 2. Change the values for the REGISTRY_NAME environment variables (below).
name: build
on: [pull_request]
on:
pull_request:
schedule:
- cron: '0 22 * * *'

# Environment variables available to all jobs and steps in this workflow
env:
REGISTRY_NAME: k8scc01covidacr
TRIVY_VERSION: "v0.43.1"
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
build:
services:
Expand Down Expand Up @@ -49,3 +53,10 @@ jobs:
exit-code: '1'
exit-level: 'fatal'
ignore: 'DKL-DI-0006'

- name: Slack Notification
if: failure() && github.event_name=='schedule'
uses: act10ns/slack@v1
with:
status: failure
message: profile-state-controller build failed. https://github.com/StatCan/aaw-profile-state-controller/actions/runs/${{github.run_id}}

0 comments on commit 228582d

Please sign in to comment.