From 965bb5fd8af0032c13a21c6b75a89023c757b64f Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Tue, 30 Jul 2024 17:45:03 +0200 Subject: [PATCH] CI: go CI V 01 Signed-off-by: Matthias Gatto --- local_tests.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/local_tests.sh b/local_tests.sh index 2822dc0..da78a0a 100755 --- a/local_tests.sh +++ b/local_tests.sh @@ -182,3 +182,30 @@ echo "[$MSG_BASE ty/js user pulumi up OK]" trap "echo [$MSG_BASE ty/js user pulumi down FAIL]" ERR PATH=$PATH:$GOPATH/bin pulumi down --yes echo "[$MSG_BASE ty/js user pulumi down OK]" + +set +e +set -e + +echo "../../go/vm/" +cd ../../go/vm/ + +set +e +echo "pulumi stack init staging" +pulumi stack init staging +pulumi stack select staging +set -e + +pulumi config set outscale:secretKeyId $OSC_SECRET_KEY +pulumi config set outscale:accessKeyId $OSC_ACCESS_KEY +pulumi config set outscale:region "eu-west-2" +pulumi config set outscale:insecure true +pulumi config set outscale:endpoints '[{"api": "127.0.0.1:3000"}]' + +set -eE + +trap "echo [$MSG_BASE go/vm user pulumi up FAIL]" ERR +PATH=$PATH:$GOPATH/bin pulumi up --yes +echo "[$MSG_BASE go/vm user pulumi up OK]" +trap "echo [$MSG_BASE go/vm user pulumi down FAIL]" ERR +PATH=$PATH:$GOPATH/bin pulumi down --yes +echo "[$MSG_BASE go/vm user pulumi down OK]"