From f195ae1d283b0de7dc9dfcacc3b2b5886d6b9c45 Mon Sep 17 00:00:00 2001 From: Jan Stourac Date: Sat, 5 Oct 2024 12:14:43 +0200 Subject: [PATCH] Remove unncessary one-time workaround from the digest updater GHA This change was never intended to be merged as it was marked with the DONT COMMIT message in the draft PR. Since it got merged and the GHA has been executed updating the base images for the new N (2024b) version, we can safely remove this workaround now. --- .github/workflows/notebooks-digest-updater-upstream.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/notebooks-digest-updater-upstream.yaml b/.github/workflows/notebooks-digest-updater-upstream.yaml index 964b66a6e..ee74df8c6 100644 --- a/.github/workflows/notebooks-digest-updater-upstream.yaml +++ b/.github/workflows/notebooks-digest-updater-upstream.yaml @@ -82,8 +82,7 @@ jobs: skopeo_metadata=$(skopeo inspect --retry-times 3 "docker://${img}") src_tag=$(echo "${skopeo_metadata}" | jq '.Env[] | select(startswith("OPENSHIFT_BUILD_NAME=")) | split("=")[1]' | tr -d '"' | sed 's/-amd64$//') - src_tag2=$(echo $src_tag | sed 's/python-3.9/python-3.11/') - regex="^$src_tag2-${{ env.RELEASE_VERSION_N}}-\d+-${{ steps.hash-n.outputs.HASH_N }}\$" + regex="^$src_tag-${{ env.RELEASE_VERSION_N}}-\d+-${{ steps.hash-n.outputs.HASH_N }}\$" latest_tag=$(echo "${skopeo_metadata}" | jq -r --arg regex "$regex" '.RepoTags | map(select(. | test($regex))) | .[0]') # use `--no-tags` for skopeo once available in newer version digest=$(skopeo inspect --retry-times 3 "docker://${registry}:${latest_tag}" | jq .Digest | tr -d '"')