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