From fb45e1f2e2766fd0855bb918c4b1eda89be98f68 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Thu, 31 Oct 2024 13:52:09 -0400 Subject: [PATCH] Use skopeo directly when copying image The action push-to-registry is meant for pushing images present in podman/docker storage, not already in the registry. Signed-off-by: Luiz Carvalho --- .github/workflows/konflux-policy.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/konflux-policy.yaml b/.github/workflows/konflux-policy.yaml index 6a084bf..083d035 100644 --- a/.github/workflows/konflux-policy.yaml +++ b/.github/workflows/konflux-policy.yaml @@ -24,9 +24,12 @@ jobs: registry: quay.io - name: Tag latest - uses: redhat-actions/push-to-registry@v2 - with: - image: quay.io/enterprise-contract/ec-release-policy:latest - tags: | - konflux - registry: quay.io/enterprise-contract/ec-release-policy + run: | + set -euo pipefail + + skopeo copy --all --digestfile image.digest \ + docker://quay.io/enterprise-contract/ec-release-policy:latest \ + docker://quay.io/enterprise-contract/ec-release-policy:konflux + + echo -n "Image Digest: " + cat image.digest