dockerutils/alpine-pkg-tag.sh
2022-06-19 20:48:14 -04:00

8 lines
197 B
Bash

#!/bin/sh
PKG_NAME=$1
apk add --no-cache $PKG_NAME
VER=$(apk version $PKG_NAME | grep $PKG_NAME | sed -e "s/$PKG_NAME-\(.*\).*=.*/\1/")
echo "$PKG_NAME version $VER"
echo -n "$VER,latest" > .tags