build_gitea: add: forgejo, alpine

This commit is contained in:
minoplhy 2024-10-03 00:08:18 +07:00
parent 90aa47c703
commit 847cd3eebb
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 107 additions and 39 deletions

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,23 @@ while [ ${#} -gt 0 ]; do
;; # NodeJS Version
--static | -s)
BUILD_STATIC=true
;; # Build as Static Assets file
;; # Also Build Static Assets file
--type=* )
BUILD_TYPE="${1#*=}"
BUILD_TYPE="${BUILD_TYPE,,}"
case $BUILD_TYPE in
"gitea") BUILD_TYPE="gitea" ;;
"forgejo") BUILD_TYPE="forgejo" ;;
"")
echo "ERROR : --type= is empty!"
exit 1
;;
*)
echo "ERROR : Vaild values for --type are -> gitea, forgejo"
exit 1
;;
esac
;;
*)
;;
esac