forked from hexlet-basics/hexlet-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 1006 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
include make-app.mk
include make-compose-app.mk
include make-compose.mk
include k8s/Makefile
project-setup: ansible-generate-env compose-setup app-setup
ansible-generate-env:
docker run --rm -e RUNNER_PLAYBOOK=ansible/development.yml \
-v $(CURDIR)/ansible/development:/runner/inventory \
-v $(CURDIR):/runner/project \
ansible/ansible-runner
ansible-terraform-vars-generate:
docker run --rm -e RUNNER_PLAYBOOK=ansible/terraform.yml \
-v $(CURDIR)/ansible/production:/runner/inventory \
-v $(CURDIR):/runner/project \
-e ANSIBLE_VAULT_PASSWORD_FILE=tmp/ansible-vault-password \
ansible/ansible-runner
ansible-vaults-edit:
docker run -it --rm \
-v $(CURDIR):/runner/project \
ansible/ansible-runner ansible-vault edit --vault-password-file project/tmp/ansible-vault-password project/ansible/production/group_vars/all/vault.yml
tag:
git tag $(TAG) && git push --tags --no-verify
next-tag:
make tag TAG=$(shell bin/generate_next_tag)
editor-setup:
bundle exec solargraph bundle