-
Notifications
You must be signed in to change notification settings - Fork 773
43 lines (41 loc) · 1.45 KB
/
update-images.yml
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
name: Update list of images
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * *"
jobs:
update:
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Latest branches
- { branch: master, channel: latest/edge }
# Stable branches
- { branch: "1.30", channel: "1.30" }
- { branch: "1.29", channel: "1.29" }
- { branch: "1.28", channel: "1.28" }
- { branch: "1.27", channel: "1.27" }
# Stable strict branches
- { branch: 1.30-strict, channel: 1.30-strict }
- { branch: 1.29-strict, channel: 1.29-strict }
- { branch: 1.28-strict, channel: 1.28-strict }
- { branch: 1.27-strict, channel: 1.27-strict }
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Update image list
run: |
./build-scripts/update-images.sh ${{ matrix.channel }} build-scripts/images.txt
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
commit-message: update list of images used by ${{ matrix.channel }}
title: "[${{ matrix.channel }}] Update MicroK8s images"
body: update list of images used by ${{ matrix.channel }}
reviewers: neoaggelos,ktsakalozos
branch: auto-update-images/${{ matrix.branch }}
delete-branch: true
base: ${{ matrix.branch }}