2023-01-24 15:47:27 +01:00
|
|
|
TAG = $$(git rev-parse --short HEAD)
|
2025-01-16 13:45:52 +01:00
|
|
|
IMG_NAME ?= ghcr.io/spegel-org/spegel
|
|
|
|
IMG_REF = $(IMG_NAME):$(TAG)
|
|
|
|
E2E_PROXY_MODE ?= iptables
|
|
|
|
E2E_IP_FAMILY ?= ipv4
|
2023-01-24 15:47:27 +01:00
|
|
|
|
|
|
|
lint:
|
|
|
|
golangci-lint run ./...
|
|
|
|
|
2025-04-25 16:36:17 +02:00
|
|
|
build:
|
|
|
|
goreleaser build --snapshot --clean --single-target --skip before
|
|
|
|
|
|
|
|
build-image: build
|
2025-01-16 13:45:52 +01:00
|
|
|
docker build -t ${IMG_REF} .
|
|
|
|
|
|
|
|
test-unit:
|
|
|
|
go test ./...
|
2023-10-26 15:22:50 +02:00
|
|
|
|
2025-04-25 16:36:17 +02:00
|
|
|
test-e2e: build-image
|
2025-01-16 13:45:52 +01:00
|
|
|
IMG_REF=${IMG_REF} \
|
|
|
|
E2E_PROXY_MODE=${E2E_PROXY_MODE} \
|
|
|
|
E2E_IP_FAMILY=${E2E_IP_FAMILY} \
|
2025-03-19 20:09:41 +01:00
|
|
|
go test ./test/e2e -v -timeout 200s -tags e2e -count 1 -run TestE2E
|
|
|
|
|
2025-04-25 16:36:17 +02:00
|
|
|
dev-deploy: build-image
|
2025-03-19 20:09:41 +01:00
|
|
|
IMG_REF=${IMG_REF} go test ./test/e2e -v -timeout 200s -tags e2e -count 1 -run TestDevDeploy
|
2023-03-12 20:24:38 +01:00
|
|
|
|
2023-10-23 12:25:00 +02:00
|
|
|
tools:
|
|
|
|
GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/helm-docs
|
2023-02-15 09:29:30 +01:00
|
|
|
|
|
|
|
helm-docs: tools
|
|
|
|
cd ./charts/spegel && helm-docs
|