Last active
December 3, 2020 18:41
-
-
Save aspen-roller/e135cecd2cfa964930d9a0555002ae04 to your computer and use it in GitHub Desktop.
get latest version of a git repo release #docker #query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker-compose | |
export LATEST_DOCKER_COMPOSE_VERSION=$(curl -sSL "https://api.github.com/repos/docker/compose/releases/latest" | grep -o -P '(?<="tag_name": ").+(?=")') | |
# docker-ce-cli | |
export LATEST_DOCKER_CLI_VERSION=$(apt-cache madison docker-ce-cli | awk 'NR==1{print $3}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment