shared-sqs: Этапы 7+8 — Dockerfile, K8s manifests, Makefile
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Makefile — shared-sqs
|
||||
# Created: 2026-04-09
|
||||
|
||||
IMAGE_REPO=pearlharbor.registryk8s.services.ngcloud.ru/naeel/shared-sqs
|
||||
VERSION=v0.1.0
|
||||
BINARY=shared-sqs
|
||||
|
||||
.PHONY: build docker-build docker-push test run clean
|
||||
|
||||
build:
|
||||
CGO_ENABLED=0 go build -o $(BINARY) app/cmd/goaws.go
|
||||
|
||||
docker-build:
|
||||
docker build -t $(IMAGE_REPO):$(VERSION) .
|
||||
|
||||
docker-push:
|
||||
docker push $(IMAGE_REPO):$(VERSION)
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
run:
|
||||
./$(BINARY) --admin-token=dev-token-123 --port=4100 --debug
|
||||
|
||||
clean:
|
||||
rm -f $(BINARY)
|
||||
Reference in New Issue
Block a user