Projet

Général

Profil

0001-add-a-Makefile-as-helper-65449.patch

Thomas Noël, 23 mai 2022 15:21

Télécharger (1,97 ko)

Voir les différences:

Subject: [PATCH] add a Makefile as helper (#65449)

 Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 Makefile
Makefile
1
INVENTORY ?= inventory.yml
2

  
3
help:
4
	@echo ""
5
	@echo "make install: install/reinstall a new Publik system"
6
	@echo "make install-ssh: install with SSH protocol for git clone"
7
	@echo "make deploy: deploy combo.dev.publik.love Publik instance"
8
	@echo "make renew-certificate: get *.dev.publik.love valid certificate"
9
	@echo "make upgrade: pull new code and do all migrations"
10
	@echo "make upgrade-ssh: upgrade with SSH protocol for git pull"
11
	@echo "make upgrade-notheme: upgrade without theme compilation"
12
	@echo "make upgrade-notheme-ssl: upgrade without theme compilation, through SSH"
13
	@echo ""
14
	@echo "use a specific inventory: (default is inventory.yml)"
15
	@echo "  make INVENTORY=my-inventory.yml ..."
16
	@echo ""
17
	@echo "More details on https://doc-publik.entrouvert.com/dev/installation-developpeur/"
18
	@echo ""
19

  
20
install:
21
	ansible-playbook -K -i $(INVENTORY) install.yml
22

  
23
install-ssh:
24
	ansible-playbook -K -i $(INVENTORY) -e "{git_ssh: True}" install.yml
25

  
26
deploy:
27
	ansible-playbook -i $(INVENTORY) deploy-tenants.yml
28

  
29
renew-certificate:
30
	ansible-playbook -K -i $(INVENTORY) --tags "tls" install.yml
31

  
32
upgrade:
33
	ansible-playbook -K -i $(INVENTORY) --tags "source" install.yml
34

  
35
upgrade-ssh:
36
	ansible-playbook -K -i $(INVENTORY) -e "{git_ssh: True}" --tags "source" install.yml
37

  
38
upgrade-notheme:
39
	ansible-playbook -K -i $(INVENTORY) -e "{compile_theme: False}" install.yml
40

  
41
upgrade-notheme-ssh:
42
	ansible-playbook -K -i $(INVENTORY) -e "{compile_theme: False}" -e "{git_ssh: True}" install.yml
0
-