-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.36 KB
/
Copy pathdeploy.yml
File metadata and controls
38 lines (38 loc) · 1.36 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
name: Deploy
on:
workflow_dispatch: {}
workflow_call: {}
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
deploy:
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/deploy
id: deploy
with:
target-manifest: ${{ matrix.manifest }}
ssh-private-key: ${{ secrets[matrix.ssh_private_key_secret] }}
sops-age-key: ${{ secrets[matrix.sops_age_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
uses: rubykatzen/baseline/.github/actions/send-telegram-message@v0.18.1
with:
message: ${{ steps.deploy.outputs.telegram-message }}
telegram-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
telegram-chat-id: ${{ vars.TELEGRAM_CHAT_ID }}
parse-mode: MarkdownV2