Skip to content

Regular base image update check #789

Regular base image update check

Regular base image update check #789

Workflow file for this run

name: Regular base image update check
on:
schedule:
- cron: "5 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install skopeo
run: sudo apt-get install -y skopeo
- name: Check change
run: |
base=$(grep -Po '(?<=FROM )(.*)' Dockerfile)
skopeo inspect "docker://$base" | jq .Digest --raw-output > .baseimagedigest
- name: Do change if the digest changed
run: |
git config user.name 'Update-a-Bot'
git config user.email '[email protected]'
git add .baseimagedigest
git commit -m "chore(image): update base image" || echo "No new changes"
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
title: 'chore(image): update base image'