big build optimization
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,4 +1,9 @@
|
||||
export GIT_COMMIT := $(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
|
||||
export BUILD_TIME := $(shell date "+%H:%M:%S %d.%m.%Y")
|
||||
|
||||
build:
|
||||
@echo "Building commit $(GIT_COMMIT)"
|
||||
@echo "Build time $(BUILD_TIME)"
|
||||
go mod tidy
|
||||
docker build -t git.nix13.pw/scuroneko/kurumibotgo:latest -t git.nix13.pw/scuroneko/kurumibotgo:0.2.0 -f ./Dockerfile .
|
||||
docker build --build-arg GIT_COMMIT --build-arg BUILD_TIME -t git.nix13.pw/scuroneko/kurumibotgo:latest -t git.nix13.pw/scuroneko/kurumibotgo:0.2.0 -f ./Dockerfile .
|
||||
docker push git.nix13.pw/scuroneko/kurumibotgo --all-tags
|
||||
Reference in New Issue
Block a user