Browse Source

Fetch image using dynamic tag from JSON

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

4
.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

Loading…
Cancel
Save