Skip to content

Regular image update check #151

Regular image update check

Regular image update check #151

Workflow file for this run

name: Regular image update check
on:
schedule:
- cron: "5 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install skopeo
run: sudo apt-get install -y skopeo
- name: Check change
run: |
skopeo inspect "docker://registry.access.redhat.com/ubi8/ubi-minimal:8.7" | grep -Po '(?<="Digest": ")([^"]+)' > .baseimagedigest
docker run --rm --entrypoint sh -u 0 quay.io/cloudservices/autotune:latest -c \
'yum upgrade -y --security > /dev/null; rpm -qa | sort | sha256sum' \
>> .baseimagedigest
- name: Do change if the digest changed
run: |
git config user.name 'Update-a-Bot'
git config user.email 'insights@redhat.com'
git add .baseimagedigest
git commit -m "chore(image): update and rebuild image" || echo "No new changes"
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: 'chore(image): update base image'