添加 appBuildDate

This commit is contained in:
bjdgyc
2024-02-21 18:38:38 +08:00
parent ff07c81401
commit bbb9cfda67
7 changed files with 64 additions and 66 deletions

View File

@@ -8,8 +8,8 @@ echo $ver
# 生成时间 2024-01-30T21:41:27+08:00
# date -Iseconds
docker run -it --rm -v $PWD/web:/app -w /app node:16-alpine \
sh -c "yarn install --registry=https://registry.npmmirror.com && yarn run build"
#docker run -it --rm -v $PWD/web:/app -w /app node:16-alpine \
# sh -c "yarn install --registry=https://registry.npmmirror.com && yarn run build"
docker buildx build -t bjdgyc/anylink:latest --progress=plain --build-arg CN="yes" --build-arg appVer=$ver \
--build-arg commitId=$(git rev-parse HEAD) -f docker/Dockerfile .