Skip to content

Commit

Permalink
Merge pull request #472 from infosiftr/github-atom-json
Browse files Browse the repository at this point in the history
Switch to consuming JSON from GitHub for "latest commit"
  • Loading branch information
yosifkit authored Jan 9, 2024
2 parents bfe953e + e8fb8d7 commit 76e5e78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ else
fi
versions=( "${versions[@]%/}" )

dindLatest="$(curl -fsSL 'https://github.com/docker/docker/commits/master/hack/dind.atom' | grep -E 'id.*Commit')"
dindLatest="$(awk <<<"$dindLatest" -F '[[:space:]]*[<>/]+' '$2 == "id" && $3 ~ /Commit/ { print $4; exit }')"
dindLatest="$(
curl -fsSL -H 'Accept: application/json' 'https://github.com/docker/docker/commits/master/hack/dind.atom' \
| jq -r '.payload | first(.commitGroups[].commits[].oid)'
)"

dockerVersions="$(
git ls-remote --tags https://github.com/docker/docker.git \
Expand Down

0 comments on commit 76e5e78

Please sign in to comment.