TAG = $$(git rev-parse --short HEAD)
IMG_NAME ?= clyde
IMG_REF = $(IMG_NAME):$(TAG)
lint:
golangci-lint run ./...
build:
goreleaser build --snapshot --clean --skip before
build-image-amd64: build
docker build --platform linux/amd64 --build-arg TARGETOS=linux --build-arg TARGETARCH=amd64 -t ${IMG_REF} .
build-image-arm64: build
docker build --platform linux/arm64 --build-arg TARGETOS=linux --build-arg TARGETARCH=arm64 -t ${IMG_REF} .
build-image-multiarch: build
docker buildx build --platform linux/amd64,linux/arm64 -t ${IMG_REF} .
unit-test:
go test ./...
clean:
rm -rf dist
tools:
GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.12.0
helm-docs: tools
cd ./charts/clyde && helm-docs