feat: 更新环境变量定义及脚本调用(APP_NAME/APP_VER)

This commit is contained in:
2023-08-03 12:30:32 +08:00
parent 77b87b64fc
commit 5f0461ed86
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4,4 +4,4 @@
# 用户 docker.hub 的自动编译钩子文件,相应的变量在镜像库自动编译界面进行配置(如:registry_url、apt_source
# 参见: https://docs.docker.com/docker-hub/builds/advanced/
docker build --build-arg registry_url=${registry_url:-docker.io} --build-arg apt_source=${apt_source:-default} -f $DOCKERFILE_PATH -t $IMAGE_NAME .
docker build --build-arg REGISTRY_URL=${registry_url:-docker.io} --build-arg APT_SOURCE=${apt_source:-default} -f $DOCKERFILE_PATH -t $IMAGE_NAME .
+4 -4
View File
@@ -1,5 +1,5 @@
#!/bin/bash
# Ver: 1.3 by Endial Fang (endial@126.com)
# Ver: 1.4 by Endial Fang (endial@126.com)
#
# 通用函数库
@@ -10,14 +10,14 @@
# 打印包含包含Logo的欢迎信息
print_welcome_info() {
[[ -n "${APP_NAME}" ]] && github_url="/docker-${APP_NAME}"
[[ -n "${APP_NAME}" ]] && github_repo="https://github.com/colovu/docker-${APP_NAME}"
LOG_I ' ____ _ '
LOG_I ' / ___|___ | | _____ ___ _ '
LOG_I '| | / _ \| |/ _ \ \ / / | | | '"Docker : ${BOLD}${APP_NAME:-undefined}${RESET}"
LOG_I '| |__| (_) | | (_) \ V /| |_| | '"Version: ${BOLD}${APP_VERSION:-0.0}${RESET}"
LOG_I '| |__| (_) | | (_) \ V /| |_| | '"Version: ${BOLD}${APP_VER:-0.0}${RESET}"
LOG_I ' \____\___/|_|\___/ \_/ \__,_| '"PowerBy: ${BOLD}Endial@126.com${RESET}"
LOG_D " Project Repo: https://github.com/colovu/${github_url:-}"
LOG_D " Project Repo: ${github_repo:-}"
LOG_I ""
}