mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -06:00
easier to export in before_deploy block
This commit is contained in:
parent
d4ea91a029
commit
fcffe2d82b
@ -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:
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user