-
Notifications
You must be signed in to change notification settings - Fork 70
/
Makefile
44 lines (38 loc) · 1.18 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Test charts locally
MAC_ARGS ?=
CHARTS_REPO ?= https://github.com/rimusz/charts
CHART_TESTING_IMAGE ?= quay.io/helmpack/chart-testing
CHART_TESTING_TAG ?= v3.7.1
GKE_TESTING_IMAGE ?= ghcr.io/rimusz/charts-ci/image
GKE_TESTING_TAG ?= 0.5.1
# If the first argument is "lint" or "mac" or "gke" or "kind"
ifneq ( $(filter wordlist 1,lint mac gke kind), $(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "lint" "mac" or "gke" or "kind"
MAC_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(MAC_ARGS):;@:)
endif
.PHONY: lint
lint:
$(eval export CHART_TESTING_IMAGE)
$(eval export CHART_TESTING_TAG)
$(eval export CHARTS_REPO)
$(eval export CHART_TESTING_ARGS=${MAC_ARGS})
@test/lint-charts-local.sh
.PHONY: mac
mac:
$(eval export CHART_TESTING_IMAGE)
$(eval export CHART_TESTING_TAG)
$(eval export CHARTS_REPO)
$(eval export CHART_TESTING_ARGS=${MAC_ARGS})
@test/e2e-docker4mac.sh
.PHONY: gke
gke:
$(eval export GKE_TESTING_IMAGE)
$(eval export GKE_TESTING_TAG)
$(eval export CHARTS_REPO)
$(eval export CHART_TESTING_ARGS=${MAC_ARGS})
@test/e2e-local-gke.sh
.PHONY: publish
publish:
@./.scripts/repo-sync.sh