feat(docs): Unify path in cdash
[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=49
18 export TF_VAR_application_version="${BUILD_ID-}"
19 export TF_LOG=INFO
20 rm -f terraform.tfstate
21 terraform init
22 terraform validate
23 terraform apply -no-color -auto-approve
24 application_version="$(terraform output application_version)"
25 popd
26 popd
27
28 #aws --region eu-central-1 elasticbeanstalk update-environment \
29 #    --environment-name fdio-csit-dash-env \
30 #    --version-label "${application_version}"