Skip to content

Commit

Permalink
Update test-dockerfile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter authored Aug 10, 2024
1 parent 49f0ea6 commit 0b22ada
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ jobs:
run: docker save --output /tmp/image.tar test:latest
-
name: Extract layer
run: tar -C /tmp -x -f /tmp/image.tar --wildcards '*layer.tar' --strip-components=1
run: |
tar -C /tmp -x -f /tmp/image.tar --strip-components=1
if [ ! -d /tmp/sha256 ]; then
echo 'Cannot extract docker archive.'
exit 1
fi
-
name: Check layer contents
run: |
ENTRY="$(tar -v -t -f /tmp/layer.tar --wildcards '*bin/install-php-extensions')"
ENTRY="$(find /tmp/sha256 -type f -exec tar -vtf {} \; 2>/dev/null | grep install-php-extensions)"
if [ -z "$ENTRY" ]; then
echo 'File not found'
exit 1
Expand Down

0 comments on commit 0b22ada

Please sign in to comment.