Browse Source

Add debug steps for image listing and extraction

Added debug steps to list images and extracted files.

Signed-off-by: Maksim Nabokikh <maksim.nabokikh@flant.com>
pull/4545/head
Maksim Nabokikh 4 weeks ago committed by GitHub
parent
commit
8bceba4a9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      .github/workflows/artifacts.yaml

8
.github/workflows/artifacts.yaml

@ -142,8 +142,12 @@ jobs:
id: image-ref
run: echo "value=${{ steps.image-name.outputs.value }}@${{ steps.build.outputs.digest }}" >> "$GITHUB_OUTPUT"
- name: Debug - list images
run: |
cat image/index.json
- name: Fetch image
run: skopeo --insecure-policy copy oci-archive:image.tar docker-archive:docker-image.tar
run: skopeo copy oci-archive:image.tar:$(skopeo list-tags oci-archive:image.tar | jq -r '.Tags[0]') docker-archive:docker-image.tar
# Uncomment the following lines for debugging:
# - name: Upload image as artifact
@ -158,7 +162,7 @@ jobs:
tar -xf docker-image.tar -C docker-image
- name: Debug - list extracted files
run: |
run: |
ls -la image/
find image -type f | head -20

Loading…
Cancel
Save