aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2024-03-29 14:39:10 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2024-03-29 14:39:10 +0300
commit908bd76aacfae7ae11b49e83da060232703bfa4f (patch)
treec49d52cf07889697505484185858081f896a11c2 /Makefile
parent67c38823f2b053928c6c0a5a13261b891e9db4d3 (diff)
Add staging.Dockerfile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c859606..69375be 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,8 @@ VERSION := "v1.9.1"
MAKEOPTS := "-j4"
all:
- go build -ldflags "-X main.commit=${COMMIT}" -o telegabber
+ mkdir -p release
+ go build -ldflags "-X main.commit=${COMMIT}" -o release/telegabber
test:
go test -v ./config ./ ./telegram ./xmpp ./xmpp/gateway ./persistence ./telegram/formatter ./badger
@@ -16,3 +17,6 @@ lint:
build_indocker:
docker build --build-arg "TD_COMMIT=${TD_COMMIT}" --build-arg "VERSION=${VERSION}" --build-arg "MAKEOPTS=${MAKEOPTS}" --output=release --target binaries .
+
+build_indocker_staging:
+ DOCKER_BUILDKIT=1 docker build --build-arg "TD_COMMIT=${TD_COMMIT}" --build-arg "MAKEOPTS=${MAKEOPTS}" --network host --output=release --target binaries -f staging.Dockerfile .