From eb8883e94d54e3df017426c11ff97567b484e45d Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Tue, 9 Apr 2024 11:23:18 +0800 Subject: [PATCH] scripts: remove version - we should not need this for lint/test Signed-off-by: Vicente Cheng --- scripts/version | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100755 scripts/version diff --git a/scripts/version b/scripts/version deleted file mode 100755 index 48d9c23..0000000 --- a/scripts/version +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -if [ -n "$(git status --porcelain --untracked-files=no)" ]; then - DIRTY="-dirty" -fi - -COMMIT=$(git rev-parse --short HEAD) -GIT_TAG=${DRONE_TAG:-$(git tag -l --contains HEAD | head -n 1)} - -if [[ -z "$DIRTY" && -n "$GIT_TAG" ]]; then - VERSION=$GIT_TAG -else - VERSION="${COMMIT}${DIRTY}" -fi - -if [ -z "$ARCH" ]; then - ARCH=$(go env GOHOSTARCH) -fi - -SUFFIX="-${ARCH}" - -TAG=${TAG:-${VERSION}${SUFFIX}} -REPO=${REPO:-harvester} - -if echo $TAG | grep -q dirty; then - TAG=dev -fi