Add versions listing script

This commit is contained in:
decentral1se 2021-04-02 17:23:29 +02:00
parent 91ccc819d5
commit 55dc3a1d2a
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

10
bin/image-versions.sh Executable file
View File

@ -0,0 +1,10 @@
#!/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'