Skip to content

Commit

Permalink
debugging deployment id
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 committed Jul 5, 2019
1 parent 9cb3eb2 commit 7c9dea5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline/run_terraform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ set -xe
terraform -v

# unique deployment ID to avoid collisions in CI
DEPLOYMENT_ID=$(echo "$DRONE_REPO_NAME$DRONE_BUILD_NUMBER" | md5sum | awk '{print $1}')
# needs to be 32 characters or less and start with letter
DEPLOYMENT_ID=ci$(echo "$DRONE_REPO_NAME$DRONE_BUILD_NUMBER" | md5sum | awk '{print substr($1,0,30)}')
echo $DEPLOYMENT_ID

cp providers.tf.example examples/$EXAMPLE/providers.tf
cp backend.tf.example examples/$EXAMPLE/backend.tf
Expand Down

0 comments on commit 7c9dea5

Please sign in to comment.