From c726e01ed764550132510f75982e37d4980b3522 Mon Sep 17 00:00:00 2001 From: Maksim Nabokikh Date: Mon, 16 Feb 2026 12:04:19 +0100 Subject: [PATCH] Fetch image using dynamic tag from JSON Signed-off-by: Maksim Nabokikh --- .github/workflows/artifacts.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml index f252324d..18d8a966 100644 --- a/.github/workflows/artifacts.yaml +++ b/.github/workflows/artifacts.yaml @@ -155,10 +155,12 @@ jobs: - name: Check Images run: | cat image/index.json + jq -r '.manifests[0].annotations["org.opencontainers.image.ref.name"]' image/index.json - name: Fetch image run: | - skopeo copy oci-archive:image.tar: docker-archive:docker-image.tar + 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 # Uncomment the following lines for debugging: # - name: Upload image as artifact