sync: 同步生产版 v1.0.4 并脱敏

This commit is contained in:
MiFaZhan
2026-10-29 15:03:39 +08:00
parent fed9459244
commit 2d045591b7
32 changed files with 695 additions and 80 deletions
@@ -4,7 +4,7 @@
gfcli:
gen:
dao:
link: "mysql:${DB_USER}:${DB_PASSWORD}@tcp(${DB_HOST}:3306)/db_iotlcm?charset=utf8mb4&parseTime=True&loc=Asia%2FShanghai"
link: "${DB_DSN}"
tables: "t_sim_card_info, t_sim_channel_templatem, t_sim_channels"
descriptionTag: true # 数据表字段注释
noModelComment: true
+2 -7
View File
@@ -5,7 +5,7 @@
up: cli.install
@gf up -a
# Build binary using configuration from hack/config.yaml.
# Build binary using configuration from hack/config.example.yaml.
.PHONY: build
build: cli.install
@gf build -ew
@@ -75,10 +75,6 @@ pbentity: cli.install
@gf gen pbentity
mod:
export AppName=jieiot_linux
export BuildVersion=$(shell git describe --abbrev=0 --tags)
export BuildTime=$(shell date +%FT%T%z)
@@ -88,7 +84,7 @@ export HasImages=$(shell docker images | grep docker_iotlcmupstreamproxy:v0 | gr
.PHONY: docker_iotlcmupstreamproxy
docker_iotlcmupstreamproxy:
if [ -n "${HasImages}" ]; then \
docker tag docker_iotlcmupstreamproxy:v0 ${REGISTRY}/docker_iotlcmupstreamproxy:v0 \
docker tag docker_iotlcmupstreamproxy:v0 docker_iotlcmupstreamproxy:v0.${NOWTIME}.bak; \
docker rmi docker_iotlcmupstreamproxy:v0; \
fi
docker build --rm -f build/Dockerfile --progress=plain --platform linux/amd64 -t docker_iotlcmupstreamproxy:v0 --build-arg BuildVersion=${BuildVersion} --build-arg BuildTime=${BuildTime} --build-arg CommitID=${CommitID} .
@@ -96,4 +92,3 @@ docker_iotlcmupstreamproxy:
dockerbuild: docker_iotlcmupstreamproxy
echo "docker build success"
dockerpush: