-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (24 loc) · 1.03 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
SHELL := /usr/bin/env bash
THIS_FILE := $(lastword $(MAKEFILE_LIST))
# Borrowed from cas-pipeline to remove a dependency
OC_PROJECT=$(shell echo "$${ENVIRONMENT:-$${OC_PROJECT}}")
GIT=$(shell command -v git)
ifeq ($(GIT),)
$(error 'git' not found in $$PATH)
endif
GIT_SHA1=$(shell $(GIT) rev-parse HEAD)
.PHONY: whoami
whoami: $(call make_help,whoami,Prints the name of the user currently authenticated via `oc`)
$(call oc_whoami)
.PHONY: lint
lint: $(call make_help,lint,Checks the configured yml template definitions against the remote schema using the tools namespace)
lint: whoami
@helm dep up helm/cas-shipit
@helm template cas-shipit helm/cas-shipit -f secret-values.example.yaml --validate -n $(OC_PROJECT)
.PHONY: install
install: whoami
@helm repo add cas-postgres https://bcgov.github.io/cas-postgres/
@helm repo add bitnami https://charts.bitnami.com/bitnami
@helm dep build helm/cas-shipit
@helm upgrade --install cas-shipit helm/cas-shipit -n $(OC_PROJECT) \
--set image.tag=$(GIT_SHA1) --set image.pullPolicy=IfNotPresent