Skip to content

Commit 2815895

Browse files
larsewiclaude
andcommitted
Added workflow to update base image SHAs in platforms.json
Runs build-in-container.py --update-sha on a weekly schedule and opens a PR with any refreshed digests. Modeled on update-base-images.yml, which performs the analogous job for image_version. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent f901056 commit 2815895

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update base image SHAs
2+
3+
on:
4+
schedule:
5+
- cron: "0 1 * * 1" # Every Monday at 01:00 UTC
6+
workflow_dispatch: # Allows manual trigger
7+
8+
jobs:
9+
update:
10+
if: contains(fromJSON('["cfengine","mendersoftware","NorthernTechHQ"]'), github.repository_owner)
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v6
18+
19+
- name: Update platforms.json
20+
run: ./build-in-container.py --update-sha
21+
22+
- name: Create pull request
23+
uses: peter-evans/create-pull-request@v8
24+
with:
25+
commit-message: "Updated base image SHAs in platforms.json"
26+
branch: update-base-image-shas
27+
title: "Updated base image SHAs"
28+
body: |
29+
Automated update of `base_image_sha` in `platforms.json` to the
30+
current manifest digests from Docker Hub.
31+
reviewers: |
32+
larsewi
33+
craigcomstock

0 commit comments

Comments
 (0)