-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
44 lines (34 loc) · 1.6 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
###############################################################################
# Licensed Materials - Property of IBM.
# Copyright IBM Corporation 2019. All Rights Reserved.
# U.S. Government Users Restricted Rights - Use, duplication or disclosure
# restricted by GSA ADP Schedule Contract with IBM Corp.
###############################################################################
# Copyright (c) 2020 Red Hat, Inc.
# Copyright Contributors to the Open Cluster Management project
SHELL = /bin/bash
STABLE_BUILD_DIR = stable
CHART_NAME ?= stable/search-prod
VERSION := $(shell cat COMPONENT_VERSION)
USE_VENDORIZED_BUILD_HARNESS ?=
ifndef USE_VENDORIZED_BUILD_HARNESS
-include $(shell curl -s -H 'Authorization: token ${GITHUB_TOKEN}' -H 'Accept: application/vnd.github.v4.raw' -L https://api.github.com/repos/stolostron/build-harness-extensions/contents/templates/Makefile.build-harness-bootstrap -o .build-harness-bootstrap; echo .build-harness-bootstrap)
else
-include vbh/.build-harness-vendorized
endif
default::
@echo "Build Harness Bootstrapped"
init::
curl -fksSL https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz | sudo tar --strip-components=1 -xvz -C /usr/local/bin/ linux-amd64/helm
helm init --stable-repo-url https://charts.helm.sh/stable -c
lint:
@mkdir -p $(STABLE_BUILD_DIR)
helm lint $(CHART_NAME)
build:
@echo "CHART_NAME: $(CHART_NAME)"
@echo "CHART_VERSION: $(VERSION)"
helm package --version $(VERSION) $(CHART_NAME) -d $(STABLE_BUILD_DIR)
build-local:
helm package $(CHART_NAME) -d $(STABLE_BUILD_DIR)
test:
helm install search stable/search-prod --dry-run