-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
21 lines (16 loc) · 829 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: lint test
# Used for Helm Chart
IMAGE_CHART_TESTING=quay.io/helmpack/chart-testing:v3.11.0
IMAGE_HELM_CHANGELOG=ghcr.io/traefik/helm-changelog:v0.3.0
IMAGE_HELM_UNITTEST=docker.io/helmunittest/helm-unittest:3.13.3-0.4.0
traefikee/tests/__snapshot__:
@mkdir traefikee/tests/__snapshot__
test: traefikee/tests/__snapshot__
docker run ${DOCKER_ARGS} --entrypoint /bin/sh --rm -v $(CURDIR):/charts -w /charts $(IMAGE_HELM_UNITTEST) /charts/hack/test.sh
lint:
docker run ${DOCKER_ARGS} --env GIT_SAFE_DIR="true" --entrypoint /bin/sh --rm -v $(CURDIR):/charts -w /charts $(IMAGE_CHART_TESTING) /charts/hack/lint.sh
changelog:
@echo "== Updating Changelogs..."
@docker run ${DOCKER_ARGS} --env GIT_SAFE_DIR="true" -it --rm -v $(CURDIR):/data $(IMAGE_HELM_CHANGELOG)
@./hack/changelog.sh
@echo "== Updating finished"