Skip to content

Commit

Permalink
Switch to urbanos quay
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-j-abbott-accenture authored Aug 15, 2024
1 parent eab0c89 commit ba769e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/check-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ jobs:
run: sudo apt-get install -y skopeo
- name: Check change
run: |
skopeo inspect "docker://registry.access.redhat.com/ubi8/ubi:latest" | grep -Po '(?<="Digest": ")([^"]+)' > .baseimagedigest
docker run --rm --entrypoint sh -u 0 quay.io/cloudservices/ubi-trino:latest -c \
skopeo inspect "docker://registry.access.redhat.com/ubi9/ubi:latest" | grep -Po '(?<="Digest": ")([^"]+)' > .baseimagedigest
docker run --rm --entrypoint sh -u 0 quay.io/urbanos/ubi-trino: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 config user.email 'ian.j.abbott@accenture.com'
git add .baseimagedigest
if [ $(git status --porcelain | wc -l) -eq "0" ]; then echo "No new changes"; else ./bump-image-tag.sh; fi
git commit -m "chore(image): update and rebuild image" || echo "No new changes"
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
title: 'chore(image): update base image'
reviewer: 'ian-j-abbott-accenture'

0 comments on commit ba769e4

Please sign in to comment.