11 lines
470 B
Makefile
11 lines
470 B
Makefile
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 --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
|