-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
87 lines (70 loc) · 2.01 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
SHELL := bash
CURRENT_DIR = $(shell pwd)
ENV_FILE := $(CURRENT_DIR)/.envrc
create-venv:
direnv allow .
pip install -r requirements.txt
pip install -r https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt
mkdir -p $(DEMO_WORK_DIR)
install-roles-and-collections:
@ansible-galaxy role install -r requirements.yml
@ansible-galaxy collection install -r requirements.yml
lint:
@ansible-lint --force-color
clean-up:
@ansible-playbook cleanup.yml $(EXTRA_ARGS)
create-kube-clusters:
direnv allow $(ENV_FILE)
@ansible-playbook clusters.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
all:
direnv allow $(ENV_FILE)
@ansible-playbook playbook.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-argocd:
direnv allow $(ENV_FILE)
@ansible-playbook argocd.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-extras:
direnv allow $(ENV_FILE)
@ansible-playbook extras.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-pipelines:
direnv allow $(ENV_FILE)
@ansible-playbook pipelines.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-gloo:
direnv allow $(ENV_FILE)
@ansible-playbook gloo.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-gitea:
direnv allow $(ENV_FILE)
@ansible-playbook gitea.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
deploy-registry:
direnv allow $(ENV_FILE)
@ansible-playbook registry.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
install-pipeline-tasks:
tkn hub install task maven \
--version=0.2 \
--context="$(CLUSTER1)"
tkn hub install task git-clone \
--version=0.5 \
--context="$(CLUSTER1)"
tkn hub install task buildah \
--version=0.3 \
--context="$(CLUSTER1)"
tkn hub install task openshift-client \
--version=0.2 \
--context="$(CLUSTER1)"
warm-m2-cache: install-pipeline-tasks
kubectl --context=$(CLUSTER1) apply -f $(CURRENT_DIR)/pipelines/m2-cache.yaml
tools:
direnv allow $(ENV_FILE)
@ansible-playbook tools.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)
test:
direnv allow $(ENV_FILE)
@ansible-playbook test.yml $(EXTRA_ARGS)
direnv allow $(ENV_FILE)