Repository navigation
70 lines (61 loc) Β· 2.06 KB
/
Copy pathbuild-batch-thursday.yml
File metadata and controls
70 lines (61 loc) Β· 2.06 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build Batch - Thursday (Certified Versions)
on:
schedule:
# Run every Thursday at 08:00 UTC
- cron: "0 8 * * 4"
workflow_dispatch:
inputs:
push:
description: "Push images to registries"
required: false
default: true
type: boolean
permissions:
contents: read
packages: write
jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate.outputs.matrix }}
total_builds: ${{ steps.generate.outputs.total_builds }}
buildable_versions: ${{ steps.generate.outputs.buildable_versions }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Generate build matrix
id: generate
uses: ./.github/actions/generate-build-matrix
with:
version-pattern: 'cert'
batch-name: "Thursday - Certified Versions"
build-matrix:
needs: prepare-matrix
if: needs.prepare-matrix.outputs.total_builds > 0
strategy:
matrix: ${{ fromJson(needs.prepare-matrix.outputs.matrix) }}
fail-fast: false
max-parallel: 20
uses: ./.github/workflows/build-single-image.yml
with:
version: ${{ matrix.version }}
distribution: ${{ matrix.distribution }}
architectures: ${{ matrix.architectures }}
additional_tags: ${{ matrix.additional_tags || '' }}
# Always push on scheduled runs (required for multi-platform builds)
# For manual runs, respect user input (default: true)
push: ${{ github.event_name == 'schedule' || inputs.push != false }}
registry: "andrius/asterisk"
secrets: inherit
# Telegram ping to the owner when an unattended run fails. Requires repo
# secret TELEGRAM_BOT_TOKEN + variable TELEGRAM_CHAT_ID; skips with a warning when unset.
notify-failure:
needs: [prepare-matrix, build-matrix]
if: failure()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/telegram-notify
with:
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
chat-id: ${{ vars.TELEGRAM_CHAT_ID }}