Skip to content

Commit

Permalink
ci: fix extraction of os-release file
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Devulder <ldevulder@suse.com>
  • Loading branch information
ldevulder committed Aug 21, 2023
1 parent 50826e1 commit b9df353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/master-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ jobs:
-l app=rancher \
-o jsonpath={.items[*].status.containerStatuses[*].image} 2> /dev/null || true)
# Extract OS version from ISO
isoinfo -i build/*.iso \
-x /BOOT/INITRD.\;1 \
INITRD_FILE=$(isoinfo -i build/*.iso -R -find -type f -name initrd -print 2>/dev/null)
isoinfo -i build/*.iso -R -x ${INITRD_FILE} 2>/dev/null \
| xz -dc \
| cpio -i --to-stdout usr/lib/initrd-release > os-release
eval $(grep IMAGE_TAG os-release)
Expand Down

0 comments on commit b9df353

Please sign in to comment.