From adec8b481a0c1afe02e83124cf86ad7a779b294a Mon Sep 17 00:00:00 2001 From: Maksim Nabokikh Date: Mon, 16 Feb 2026 15:33:19 +0100 Subject: [PATCH] Add steps to fetch and extract OCI image tarball (#4552) Added steps to fetch and extract OCI image tarball. Signed-off-by: Maksim Nabokikh --- .github/workflows/artifacts.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml index 6cb9579b..8630f9cc 100644 --- a/.github/workflows/artifacts.yaml +++ b/.github/workflows/artifacts.yaml @@ -142,13 +142,22 @@ jobs: id: image-ref 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: # - name: Upload image as artifact # uses: actions/upload-artifact@v3 # with: # name: "[${{ github.job }}] OCI tarball" # path: image.tar - # + + - name: Extract OCI tarball + run: | + mkdir -p image + tar -xf image.tar -C image + # - name: List tags # run: skopeo --insecure-policy list-tags oci:image #