Skip to content

Commit 736230d

Browse files
committed
Added workflow to update base image versions weekly
Runs every Monday at midnight and creates a PR if platforms.json was updated with newer image tags. Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 4db6ab6 commit 736230d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update base image versions
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * 1" # Every Monday at midnight UTC
6+
workflow_dispatch: # Allows manual trigger
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
18+
- name: Update platforms.json
19+
run: ./build-in-container.py --update
20+
21+
- name: Create pull request
22+
uses: peter-evans/create-pull-request@v8
23+
with:
24+
commit-message: "Updated base image versions in platforms.json"
25+
branch: update-base-images
26+
title: "Updated base image versions"
27+
body: |
28+
Automated update of `image_version` in `platforms.json` to the
29+
latest tags from ghcr.io.

0 commit comments

Comments
 (0)