Browse Source

Add steps to fetch and extract OCI image tarball (#4552)

Added steps to fetch and extract OCI image tarball.

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

11
.github/workflows/artifacts.yaml

@ -142,13 +142,22 @@ jobs:
id: image-ref id: image-ref
run: echo "value=${{ steps.image-name.outputs.value }}@${{ steps.build.outputs.digest }}" >> "$GITHUB_OUTPUT" run: echo "value=${{ steps.image-name.outputs.value }}@${{ steps.build.outputs.digest }}" >> "$GITHUB_OUTPUT"
- name: Fetch image
run: skopeo --insecure-policy copy docker://${{ steps.image-ref.outputs.value }} oci-archive:image.tar
if: inputs.publish
# Uncomment the following lines for debugging: # Uncomment the following lines for debugging:
# - name: Upload image as artifact # - name: Upload image as artifact
# uses: actions/upload-artifact@v3 # uses: actions/upload-artifact@v3
# with: # with:
# name: "[${{ github.job }}] OCI tarball" # name: "[${{ github.job }}] OCI tarball"
# path: image.tar # path: image.tar
#
- name: Extract OCI tarball
run: |
mkdir -p image
tar -xf image.tar -C image
# - name: List tags # - name: List tags
# run: skopeo --insecure-policy list-tags oci:image # run: skopeo --insecure-policy list-tags oci:image
# #

Loading…
Cancel
Save