This repository has been archived on 2021-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
abra/bin/image-versions.sh

11 lines
214 B
Bash
Raw Normal View History

2021-04-02 15:23:29 +00:00
#!/bin/bash
# Usage: ./image-version.sh <image>
# Example: ./image-version.sh gitea/gitea
#
# Reads image metadata from Docker hub and lists versions
IMAGE="$1"
skopeo inspect "docker://$IMAGE" | jq '.RepoTags'