feat: initialize golang project template with docker and ci/cd
Some checks failed
CI / Lint (push) Failing after 45s
CI / Test (push) Failing after 10s
CI / Build (push) Has been skipped
CI / Docker Build (push) Has been skipped

This commit is contained in:
2026-01-12 10:47:04 +01:00
parent 12473662e8
commit 6ef83e18f8
11 changed files with 372 additions and 1 deletions

24
Makefile Normal file
View File

@@ -0,0 +1,24 @@
.PHONY: build run test lint clean docker-build
APP_NAME := app
BUILD_DIR := build
CMD_PATH := ./cmd/app
build:
@mkdir -p $(BUILD_DIR)
go build -o $(BUILD_DIR)/$(APP_NAME) $(CMD_PATH)
run: build
$(BUILD_DIR)/$(APP_NAME)
test:
go test -v -race -cover ./...
lint:
golangci-lint run
clean:
rm -rf $(BUILD_DIR)
docker-build:
docker build -t $(APP_NAME):latest .