easier to export in before_deploy block

This commit is contained in:
Scott Nowicki 2017-04-24 13:27:00 -05:00
parent d4ea91a029
commit fcffe2d82b
2 changed files with 3 additions and 7 deletions

View File

@ -14,7 +14,9 @@ branches:
- /^(?i:topic)-.*$/
# install terraform
before_deploy: cd $TEST_DIR && ./before_deploy.sh
before_deploy:
- export KEY=$(cat /dev/urandom | tr -cd 'a-z' | head -c 12)
- export PASSWORD=$KEY$(cat /dev/urandom | tr -cd 'A-Z' | head -c 2)$(cat /dev/urandom | tr -cd '0-9' | head -c 2)
# terraform deploy script
deploy:

View File

@ -1,6 +0,0 @@
#!/bin/bash
set -o errexit -o nounset
export KEY=$(cat /dev/urandom | tr -cd 'a-z' | head -c 12)
export PASSWORD=$KEY$(cat /dev/urandom | tr -cd 'A-Z' | head -c 2)$(cat /dev/urandom | tr -cd '0-9' | head -c 2)