Skip to content

Commit

Permalink
Update actions (#120)
Browse files Browse the repository at this point in the history
Actions using older versions of Node.js are deprecated
  • Loading branch information
samdoran authored Jun 14, 2024
1 parent b3a4c55 commit 1961332
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install skopeo
run: sudo apt-get install -y skopeo

- name: Check change
run: |
skopeo inspect "docker://$(grep -Po '(?<=FROM )([^"]+)' Dockerfile)" | grep -Po '(?<="Digest": ")([^"]+)' > .baseimagedigest
docker run --rm --entrypoint sh -u 0 quay.io/cloudservices/koku-report-emailer: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 '[email protected]'
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
uses: peter-evans/create-pull-request@v6
with:
title: 'chore(image): update base image'

0 comments on commit 1961332

Please sign in to comment.