mirror of
https://github.com/minoplhy/scriptbox.git
synced 2024-12-05 01:46:57 +00:00
build_gitea : exit when GIT_TAG isn't supplied. And better echo message.
This commit is contained in:
parent
18a0b5eb04
commit
b51e2bd04f
@ -46,10 +46,10 @@ then
|
||||
if git show-ref $GIT_TAG --quiet; then
|
||||
git checkout $GIT_TAG
|
||||
else
|
||||
echo "Variable GIT_TAG doesn't existed in the repo. fallback to default"
|
||||
echo -e "\nGIT_TAG variable doesn't match the repo tag/version. exit to prevent further issue." && exit 1 && rm -rf $MAKE_DIR
|
||||
fi
|
||||
else
|
||||
echo "GIT_TAG variable doesn't exist skipping"
|
||||
echo -e "GIT_TAG variable not found. will build on "main" branch."
|
||||
fi
|
||||
|
||||
LDFLAGS="-X \"code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea/\" -X \"code.gitea.io/gitea/modules/setting.CustomConf=/etc/gitea/app.ini\"" TAGS="bindata sqlite sqlite_unlock_notify" GOOS=linux GOARCH=amd64 make build
|
||||
|
Loading…
Reference in New Issue
Block a user