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
|
if git show-ref $GIT_TAG --quiet; then
|
||||||
git checkout $GIT_TAG
|
git checkout $GIT_TAG
|
||||||
else
|
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
|
fi
|
||||||
else
|
else
|
||||||
echo "GIT_TAG variable doesn't exist skipping"
|
echo -e "GIT_TAG variable not found. will build on "main" branch."
|
||||||
fi
|
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
|
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