spegel/Makefile

33 lines
770 B
Makefile
Raw Normal View History

2023-01-24 15:47:27 +01:00
TAG = $$(git rev-parse --short HEAD)
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 ./...
build:
goreleaser build --snapshot --clean --single-target --skip before
build-image: build
docker build -t ${IMG_REF} .
test-unit:
go test ./...
2023-10-26 15:22:50 +02:00
test-e2e: build-image
IMG_REF=${IMG_REF} \
E2E_PROXY_MODE=${E2E_PROXY_MODE} \
E2E_IP_FAMILY=${E2E_IP_FAMILY} \
go test ./test/e2e -v -timeout 200s -tags e2e -count 1 -run TestE2E
dev-deploy: build-image
IMG_REF=${IMG_REF} go test ./test/e2e -v -timeout 200s -tags e2e -count 1 -run TestDevDeploy
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