-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
43 lines (31 loc) · 1.21 KB
/
justfile
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
py_dir := "events_page"
tf_subdir := "./terraform"
tfvars_file := "losverdesatx-events.tfvars"
set-tf-ver-output:
echo "::set-output name=terraform_version::$(cat {{ tf_subdir }}/.terraform-version)"
run-tf CMD:
terraform -chdir="{{ justfile_directory() + "/" + tf_subdir }}" \
{{ CMD }} \
{{ if CMD != "init" { "-var-file=../" + tfvars_file } else { "" } }}
tf-init:
just run-tf init
tf-auto-apply: tf-init
just run-tf 'apply -auto-approve'
run-py +command:
# export EVENTS_PAGE_SA_EMAIL="$(terraform -chdir=terraform output -raw site_publisher_sa_email)"
cd "{{ py_dir }}" && {{ command }}
install-python-reqs:
just run-py 'pip3 install --requirement=requirements.txt --quiet'
ensure-watches: install-python-reqs
just run-py './ensure_watches.py --quiet'
dispatch-build-run: install-python-reqs
just run-py './dispatch_build_workflow_run.py --quiet'
build-and-publish: install-python-reqs
just run-py './build_and_publish_site.py --quiet'
cleanup-test-site-prefix: install-python-reqs
just run-py './remove_subpath_from_gcs.py --quiet'
test: install-python-reqs
just run-py './run_webdriver_tests.py'
serve:
just run-py './render_templated_styles.py'
just run-py './app.py'