Skip to content

Commit 615543a

Browse files
authored
feat(nightly builds): still needs gh secret (#278)
1 parent 1d2753e commit 615543a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ on:
88
- 'opened'
99
- 'synchronize'
1010
- 'reopened'
11+
schedule:
12+
- cron: '0 23 * * *'
13+
1114
env:
1215
REGISTRY_NAME: k8scc01covidacr
1316
DEV_REGISTRY_NAME: k8scc01covidacrdev
1417
TRIVY_VERSION: "v0.43.1"
18+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1519

1620
jobs:
1721
build:
@@ -88,3 +92,10 @@ jobs:
8892
docker pull localhost:5000/jupyter-apis:${{ github.sha }}
8993
docker tag localhost:5000/jupyter-apis:${{ github.sha }} ${{ env.REGISTRY }}/jupyter-apis:${{ github.sha }}
9094
docker push ${{ env.REGISTRY }}/jupyter-apis:${{ github.sha }}
95+
96+
- name: Slack Notification
97+
if: failure() && github.event_name=='schedule'
98+
uses: act10ns/slack@v1
99+
with:
100+
status: failure
101+
message: jupyter-apis build failed. https://github.com/StatCan/jupyter-apis/actions/runs/${{github.run_id}}

0 commit comments

Comments
 (0)