-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (36 loc) · 1.3 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
.PHONY: create_workspace
create_workspace:
./tfe-scripts/tf-create-workspace-if-not-exist.sh $(org) $(workspace)
./tfe-scripts/tf-upload-workspace-configuration.sh ./bcgov $(org)/$(workspace)
.PHONY: delete_workspace
delete_workspace:
./tfe-scripts/tf-delete-workspace.sh $(org) $(workspace)
.PHONY: set_values
set_values:
./tfe-scripts/tf-set-variables.sh ./variables/ $(org) $(workspace)
./tfe-scripts/tf-update-variable-values.sh ./.values $(org) $(workspace)
.PHONY: sync_values
sync_values:
./tfe-scripts/tf-sync-values.sh ./.values $(org) $(workspace)
.PHONY: add_app
add_app:
./tfe-scripts/tf-variable-add-to-set.sh $(workspace_id) namespace_apps $(app)
.PHONY: run
run:
./tfe-scripts/tf-run.sh $(org) $(workspace)
.PHONY: destroy
destroy:
./tfe-scripts/tf-run.sh $(org) $(workspace) --delete
.PHONY: test
test:
bats ./tfe-scripts/test/unit/*.bats
.PHONY: install_asdf_tools
install_asdf_tools:
@cat .tool-versions | cut -f 1 -d ' ' | xargs -n 1 asdf plugin-add || true
@asdf plugin-update --all
@bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
@#MAKELEVEL=0 is required because of https://www.postgresql.org/message-id/1118.1538056039%40sss.pgh.pa.us
@MAKELEVEL=0 POSTGRES_EXTRA_CONFIGURE_OPTIONS='--with-libxml' asdf install
@asdf reshim
@pip install -r requirements.txt
@asdf reshim