From db72a36a26b0038f902faa447145ccf120936c7d Mon Sep 17 00:00:00 2001 From: quackerd Date: Sun, 19 Jun 2022 20:48:14 -0400 Subject: [PATCH] alpine stuff --- alpine-pkg-tag.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 alpine-pkg-tag.sh diff --git a/alpine-pkg-tag.sh b/alpine-pkg-tag.sh new file mode 100644 index 0000000..43f35fc --- /dev/null +++ b/alpine-pkg-tag.sh @@ -0,0 +1,7 @@ +#!/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