-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
54 lines (42 loc) · 1.4 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
version ?= 0.9.1-pre.0
ci: clean deps lint package
clean:
rm -rf logs/ stage/ provisioners/ansible/playbooks/*.retry
stage:
mkdir -p stage/
# resolve dependencies from remote artifact registries
deps: stage
pip install -r requirements.txt
lint:
yamllint \
conf/ansible/inventory/group_vars/*.yaml \
provisioners/ansible/playbooks/*.yaml \
templates/cloudformation/*.yaml
shellcheck scripts/*.sh
for playbook in provisioners/ansible/playbooks/*.yaml; do \
ANSIBLE_LIBRARY=conf/ansible/library ansible-playbook -vvv $$playbook --syntax-check; \
done
package: stage
tar \
--exclude='stage*' \
--exclude='.bundle' \
--exclude='bin' \
--exclude='.git*' \
--exclude='.tmp*' \
--exclude='.idea*' \
--exclude='.DS_Store*' \
--exclude='logs*' \
--exclude='*.retry' \
--exclude='*.iml' \
-czf \
stage/aem-helloworld-user-aws-resources-$(version).tar.gz .
release:
rtk release
################################################################################
# AWS resources targets.
################################################################################
create-aws-resources:
scripts/run-playbook-stack.sh create-aws-resources "${env_type}" "${stack_prefix}"
delete-aws-resources:
scripts/run-playbook-stack.sh delete-aws-resources "${env_type}" "${stack_prefix}"
.PHONY: ci clean deps lint package create-aws-resources delete-aws-resources