Commit 4eb393ec authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #20577 from dreis2211

* gh-20577:
  Only suggest Ubuntu versions available in the Docker registry

Closes gh-20577
parents d0ccb599 e6abcacf
......@@ -3,7 +3,7 @@
ISSUE_TITLE="Upgrade Ubuntu version in CI images"
ubuntu="bionic"
latest=$( curl -s "https://partner-images.canonical.com/core/$ubuntu/current/unpacked/build-info.txt" | awk '{split($0, parts, "="); print parts[2]}' )
latest=$( curl -s "https://hub.docker.com/v2/repositories/library/ubuntu/tags/?page_size=1&page=1&name=$ubuntu" | jq -c -r '.results[0].name' | awk '{split($0, parts, "-"); print parts[2]}' )
current=$( grep "ubuntu:$ubuntu" git-repo/ci/images/spring-boot-ci-image/Dockerfile | awk '{split($0, parts, "-"); print parts[2]}' )
if [[ $current = $latest ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment