Commit 505e6a1b authored by dreis2211's avatar dreis2211 Committed by Phillip Webb

Fix Docker update detection on CI

See gh-26086
parent f29c707e
#!/bin/bash #!/bin/bash
latest_version=$(curl -I -s https://github.com/docker/docker-ce/releases/latest | grep -i "location:" | awk '{n=split($0, parts, "/"); print substr(parts[n],2);}' | awk '{$1=$1;print}' | tr -d '\r' | tr -d '\n' ) latest_version=$(curl -I -s https://github.com/moby/moby/releases/latest | grep -i "location:" | awk '{n=split($0, parts, "/"); print substr(parts[n],2);}' | awk '{$1=$1;print}' | tr -d '\r' | tr -d '\n' )
if [[ $latest_version =~ (beta|rc) ]]; then if [[ $latest_version =~ (beta|rc) ]]; then
echo "Skip pre-release versions" echo "Skip pre-release versions"
......
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