-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (35 loc) · 949 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
46
47
48
ansible_tags =
ifeq ($(ansible_tags),)
ansible_opts=
else
ansible_opts=--tags $(ansible_tags)
endif
buildCI:
docker build -t vdtn359/news-ci .
buildPacker:
export DIGITALOCEAN_TOKEN=$(shell secrethub read vdtn359/start/vdtn359-news/digitalocean-token); \
cd infra/packer && packer build vdtn359.json
provisionDigitalOcean:
cd infra/terraform/digitalocean; \
terraform init; \
terraform apply -auto-approve
provisionHeroku:
cd infra/terraform/heroku; \
terraform init; \
terraform apply -auto-approve
provisionCrawler:
cd app/crawler && ./deploy.sh
provisionScheduler:
cd app/scheduler && ./deploy.sh
playbook:
cd infra/ansible && ansible-playbook -v main.yml $(ansible_opts)
pushCI: buildCI
docker push vdtn359/news-ci
buildWorker:
cd app/worker && ./deploy.sh
buildWeb:
cd app/web && ./deploy.sh
releaseWorker:
heroku container:release -a vdtn359-news worker
releaseWeb:
heroku container:release -a vdtn359-news web