feat(dash): Tune production parameters
[csit.git] / csit.infra.dash / do_release.sh
1 #!/usr/bin/env bash
2
3 set -xuo pipefail
4
5 command -v zip || exit 1
6
7 rm -f app.zip
8
9 pushd app
10 find . -type d -name "__pycache__" -exec rm -rf "{}" \;
11 find . -type d -name ".webassets-cache" -exec rm -rf "{}" \;
12 zip -r ../app.zip .
13 popd
14
15 pushd "../fdio.infra.terraform/"
16 pushd "terraform-aws-fdio-csit-dash-app-base"
17 export BUILD_ID=43
18 export TF_VAR_application_version="${BUILD_ID-}"
19 export TF_LOG=INFO
20 terraform validate
21 terraform init
22 terraform apply -no-color -auto-approve
23 application_version="$(terraform output application_version)"
24 popd
25 popd
26
27 #aws --region eu-central-1 elasticbeanstalk update-environment \
28 #    --environment-name fdio-csit-dash-env \
29 #    --version-label "${application_version}"