Commit af399494 authored by Craig Miskell's avatar Craig Miskell

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

parent e03068b1
......@@ -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