Repository navigation
46 lines (46 loc) · 1.72 KB
/
Copy pathrenovate.yml
File metadata and controls
46 lines (46 loc) · 1.72 KB
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
36
37
38
39
40
41
42
43
44
45
46
name: Renovate
on:
workflow_dispatch:
inputs:
apps:
description: JSON array of app name(s) to renovate (re-pull their image and recreate their containers) wherever each is currently deployed, e.g. ["traefik","rybbit"]. Leave empty to renovate every app on every target.
type: string
required: false
default: "[]"
schedule:
- cron: "0 3 * * *"
jobs:
load-targets:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.load-targets.outputs.matrix }}
count: ${{ steps.load-targets.outputs.count }}
steps:
- uses: actions/checkout@v7
- uses: $/.github/actions/load-targets-matrix
id: load-targets
renovate:
needs: load-targets
if: needs.load-targets.outputs.count != '0'
strategy:
matrix: ${{ fromJson(needs.load-targets.outputs.matrix) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: $/.github/actions/renovate
id: renovate
with:
apps: ${{ inputs.apps || '[]' }}
target-manifest: ${{ matrix.manifest }}
ssh-private-key: ${{ secrets[matrix.ssh_private_key_secret] }}
github-token: ${{ secrets.GITHUB_TOKEN }}
tailscale-oauth-client-id: ${{ vars.TAILSCALE_OAUTH_CLIENT_ID }}
tailscale-oauth-secret: ${{ secrets.TAILSCALE_OAUTH_SECRET }}
- name: Notify Telegram
if: steps.renovate.outputs.updated == 'true'
uses: rubykatzen/baseline/.github/actions/send-telegram-message@v0.19.0
with:
message: ${{ steps.renovate.outputs.telegram-message }}
telegram-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
telegram-chat-id: ${{ vars.TELEGRAM_CHAT_ID }}
parse-mode: MarkdownV2