forked from toshke/big-blue-button-cloudformation-cfhl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (35 loc) · 986 Bytes
/
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
.EXPORT_ALL_VARIABLES:
RUN_CFHL=docker-compose run --rm -v $$PWD:/src -w /src -u 0 cfhl
RUN_AWSCLI=docker-compose run --rm -v $$PWD:/src -w /src -u 0 awscli
CFHL_DOCKER_TAG ?= latest
TEMPLATES_DIST_VERSION ?= $(shell date +%s)
DIST_VERSION ?= latest
AWS_REGION ?= ap-southeast-2
AWS_DEFAULT_REGION ?= ap-southeast-2
DIST_BUCKET ?= templates-$(AWS_REGION).cfhighlander.info
DIST_PREFIX ?= templates/bbb
all: clean build test
clean:
docker-compose down
rm -rf out
.PHONY: clean
_build:
gem install netaddr -v 2.0.4
cfhighlander cfcompile bbb --validate
_publish:
gem install netaddr -v 2.0.4
echo $(AWS_DEFAULT_REGION)
echo $(AWS_REGION)
cfhighlander cfpublish bbb --validate --dstbucket $(DIST_BUCKET) --dstprefix $(DIST_PREFIX) --version $(DIST_VERSION)
_release:
gem install netaddr -v 2.0.4
scripts/release_all.rb
build:
$(RUN_CFHL) make _build
.PHONY: build
publish:
$(RUN_CFHL) make _publish
.PHONY: publish
release:
$(RUN_CFHL) make _release
.PHONY: release