aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-01-25 12:54:28 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-01-25 15:12:17 +0000
commit61cf4d230c3bd88cd0a6f3782796cc3949485b72 (patch)
tree90aa5f8366dd561bb2b5d64c4d3b77edb81ed40b /csit.infra.dash
parenta76b2a54b95e2a6b9620a631098f0016a0dc8e40 (diff)
feat(terraform): Refactor application version deploy
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I065a018745a82762c816de96d8a69116416aa0ce
Diffstat (limited to 'csit.infra.dash')
-rwxr-xr-xcsit.infra.dash/do_release.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/csit.infra.dash/do_release.sh b/csit.infra.dash/do_release.sh
index e4d7e3a3a6..63aff04dca 100755
--- a/csit.infra.dash/do_release.sh
+++ b/csit.infra.dash/do_release.sh
@@ -11,3 +11,19 @@ find . -type d -name "__pycache__" -exec rm -rf "{}" \;
find . -type d -name ".webassets-cache" -exec rm -rf "{}" \;
zip -r ../app.zip .
popd
+
+pushd "../fdio.infra.terraform/"
+pushd "terraform-aws-fdio-csit-dash-app-base"
+export BUILD_ID=41
+export TF_VAR_application_version="${BUILD_ID-}"
+export TF_LOG=INFO
+terraform validate
+terraform init
+terraform apply -no-color -auto-approve
+application_version="$(terraform output application_version)"
+popd
+popd
+
+#aws --region eu-central-1 elasticbeanstalk update-environment \
+# --environment-name fdio-csit-dash-env \
+# --version-label "${application_version}"