Skip to content

Commit

Permalink
Merge pull request #738 from jstourac/removeTmpWorkaround
Browse files Browse the repository at this point in the history
Remove unncessary one-time workaround from the digest updater GHA
  • Loading branch information
openshift-merge-bot[bot] authored Oct 9, 2024
2 parents d3a5f84 + f195ae1 commit d2c43f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/notebooks-digest-updater-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '"')
Expand Down

0 comments on commit d2c43f2

Please sign in to comment.