-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 880 Bytes
/
update.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "UPDATE"
on:
schedule:
- cron: "0 13 * * 1"
workflow_dispatch:
jobs:
update-check:
runs-on: self-hosted
environment: 'dev'
outputs:
image-needs-updating: ${{ steps.check.outputs.needs-updating }}
steps:
- name: Docker Image Update Checker
id: check
uses: lucacome/docker-image-update-checker@v1
with:
base-image: library/nginx:latest
image: clickbg/homekit-monitord:latest
cicd:
needs: update-check
if: ${{ needs.update-check.outputs.image-needs-updating == 'true' }}
uses: clickbg/homekit-monitord/.github/workflows/cicd.yaml@main
publish:
needs: cicd
uses: clickbg/homekit-monitord/.github/workflows/publish.yaml@main
with:
environment: prod
secrets:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}