Skip to content

Commit

Permalink
Fixpipeline (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
colincoleman authored Dec 19, 2018
1 parent 7f9ffaf commit 59eb1d5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/tasks/apply/task.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
export DIR="${PWD}"
cp -R ${DIR}/source ${DIR}secret-source
cp -a ${DIR}/source/. ${DIR}/secret-source/
cd ${DIR}/secret-source/examples/${directory}
sed -i 's#<test-account-id>#'${AWS_ACCOUNT_ID}'#g' main.tf
sed -i 's#<kms-key-id>#'${KMS_KEY_ID}'#g' main.tf
Expand Down
4 changes: 3 additions & 1 deletion .ci/tasks/destroy/task.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
export DIR="${PWD}"
cd ${DIR}/secret-source/examples/default
cd ${DIR}/secret-source/examples/${directory}
rm -rf .terraform
terraform init
terraform destroy --auto-approve
1 change: 1 addition & 0 deletions examples/default/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tests_failed=0
if [ $1 == 'ci' ]
then
VPC_ID=`cat terraform-out/terraform-out.json | jq -r '.vpc_id.value'`
export AWS_DEFAULT_REGION=eu-west-1
else
VPC_ID=`terraform output -json | jq -r '.vpc_id.value'`
fi
Expand Down
1 change: 1 addition & 0 deletions examples/private-subnets-no-nat/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tests_failed=0
if [ $1 == 'ci' ]
then
VPC_ID=`cat terraform-out/terraform-out.json | jq -r '.vpc_id.value'`
export AWS_DEFAULT_REGION=eu-west-1
else
VPC_ID=`terraform output -json | jq -r '.vpc_id.value'`
fi
Expand Down
1 change: 1 addition & 0 deletions examples/private-subnets/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tests_failed=0
if [ $1 == 'ci' ]
then
VPC_ID=`cat terraform-out/terraform-out.json | jq -r '.vpc_id.value'`
export AWS_DEFAULT_REGION=eu-west-1
else
VPC_ID=`terraform output -json | jq -r '.vpc_id.value'`
fi
Expand Down

0 comments on commit 59eb1d5

Please sign in to comment.