Browse Source

Refactor image fetching in artifacts workflow

Updated the workflow to fetch Docker images directly into a directory instead of using a tarball. Removed the extraction step for the tarball.

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

8
.github/workflows/artifacts.yaml

@ -159,8 +159,9 @@ jobs:
- name: Fetch image
run: |
mkdir -p docker-image
FIRST_TAG=$(jq -r '.manifests[0].annotations["org.opencontainers.image.ref.name"]' image/index.json)
skopeo copy oci-archive:image.tar:${FIRST_TAG} docker-archive:docker-image.tar
skopeo copy oci-archive:image.tar:${FIRST_TAG} dir:./docker-image
# Uncomment the following lines for debugging:
# - name: Upload image as artifact
@ -169,11 +170,6 @@ jobs:
# name: "[${{ github.job }}] OCI tarball"
# path: image.tar
- name: Extract tarball
run: |
mkdir -p docker-image
tar -xf docker-image.tar -C docker-image
- name: Debug - list extracted files
run: |
ls -la docker-image/

Loading…
Cancel
Save