Commit 3d061a4b authored by Craig Miskell's avatar Craig Miskell

Merge branch 'tf-validate-only-run-on-ops' into 'master'

Only run tf_validate job when required variables (SSH_PRIVATE_KEY & SSH_KNOWN_HOSTS) are present

See merge request !786
parents e03068b1 af399494
......@@ -31,6 +31,10 @@ tf_validate:
stage: validate
# Validate every directory that contains terraform config
# (`terraform validate` does not do a full recurse)
only:
variables:
- $SSH_PRIVATE_KEY
- $SSH_KNOWN_HOSTS
script: |
#!/bin/sh
# SSH setup for module cloning
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment