Skip to content

Instantly share code, notes, and snippets.

@bwhaley
Created April 3, 2017 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwhaley/9bafcbfce24c75a6eb022307930bd27b to your computer and use it in GitHub Desktop.
Save bwhaley/9bafcbfce24c75a6eb022307930bd27b to your computer and use it in GitHub Desktop.
pipeline escaping issues
sh ‘’’#!/bin/bash -l
cp do_image.txt pipeline/testing
cd pipeline/testing
terraform apply \\
-var do_image=\”\$(<do_image.txt)\” \\
-var do_token=\”\${DO_TOKEN}\” \\
-var ssh_fingerprint=\”\${SSH_FINGERPRINT}\”
terraform show terraform.tfstate \\
| grep ipv4_address | awk \”{print \$3}\” > ../../do_ip.txt
‘’’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment