Skip to content

Commit

Permalink
ci(GitHub): RHINENG-15637 fix checksum for installed packages
Browse files Browse the repository at this point in the history
            Currently fails with:
            cat: /opt/installedpackages: No such file or directory
  • Loading branch information
romanblanco committed Jan 31, 2025
1 parent e90e917 commit 62f2d93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .baseimagedigest
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sha256:d16d4445b1567f29449fba3b6d2bc37db467dc3067d33e940477e55aecdf6e8e
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
3efff499104312321ff52c66f24db843e5016f3db2c92c6067d397b1036d8d0d
2 changes: 1 addition & 1 deletion .github/workflows/checkimage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
base=$(grep -Po '(?<=FROM )([^\s]*)(?= AS build)' Dockerfile)
skopeo inspect "docker://$base" | jq .Digest --raw-output > .baseimagedigest
docker run --rm -u 0 quay.io/cloudservices/compliance-backend:latest sh -c \
'microdnf update -y $(cat /opt/installedpackages) > /dev/null; rpm -q $(cat /opt/installedpackages) | sort | sha256sum | cut -d " " -f 1' \
'rpm -qa | grep -v "gpg-pubkey" > /opt/installedpackages; microdnf update -y $(cat /opt/installedpackages) > /dev/null; rpm -q $(cat /opt/installedpackages) | sort | sha256sum | cut -d " " -f 1' \
>> .baseimagedigest
- name: Do change if the digest changed
run: |
Expand Down

0 comments on commit 62f2d93

Please sign in to comment.