meta: add CI to build debian package #1
+1
-1
@@ -19,7 +19,7 @@ main() {
|
||||
# get latest tag (annotated or lightweight)
|
||||
git clone --depth=1 --filter=blob:none --tags "${COREDNS_REPO_URL}" "${COREDNS_DIR}"
|
||||
cd "${COREDNS_DIR}"
|
||||
LATEST_TAG="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
|
||||
LATEST_TAG="$(git tag --list --sort=-version:refname | head -n 1)"
|
||||
git fetch --tags --depth=1 origin "${LATEST_TAG}"
|
||||
git checkout "${LATEST_TAG}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user