Skip to content

Commit

Permalink
<update>version
Browse files Browse the repository at this point in the history
  • Loading branch information
grtui578 committed Jan 9, 2024
1 parent f71d9da commit 28f4cfe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BUILD_TIME?=$(shell date -u '+%Y-%m-%d_%H:%M:%S')
APPVersion?=0.0.2
APPVersion?=0.0.3
ContainerTagName?=justgps/excel
APP?=app
PORT?=11004
Expand All @@ -10,7 +10,7 @@ CURDIR := $(dir $(MKFILE))

build:
go env -w GOPRIVATE=github.com/asccclass
GOOS=linux GOARCH=amd64 GO111MODULE=off go build -tags netgo \
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 GO111MODULE=off go build -tags netgo \
-ldflags "-s -w -X version.BuildTime=${BUILD_TIME}" \
-o ${APP}

Expand All @@ -31,6 +31,7 @@ run: docker
--env-file ./envfile \
-p ${PORT}:80 ${ImageName}:${APPVersion}
sh clean.sh
docker logs -f -t --tail 20 ${ContainerName}

stop:
docker stop ${ContainerName}
Expand Down

0 comments on commit 28f4cfe

Please sign in to comment.