Commit e1d24474 authored by Craig Barrett's avatar Craig Barrett

Test removal of SSH blocks from CI jobs

parent 20791f20
......@@ -34,12 +34,12 @@ validate:
set +o pipefail
echo "running tf validate" # there's no output for empty builds otherwise
# SSH setup for module cloning
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
#eval $(ssh-agent -s)
#echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
#mkdir -p ~/.ssh
#chmod 700 ~/.ssh
#echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
#chmod 644 ~/.ssh/known_hosts
cp private/env_vars/common.env.example private/env_vars/common.env
dir="environments" # For the "bin/tf-set-env" script
......@@ -61,12 +61,12 @@ validate:
.tf_plan: &tf_plan
script: |
# SSH setup for module cloning
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
#eval $(ssh-agent -s)
#echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
#mkdir -p ~/.ssh
#chmod 700 ~/.ssh
#echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
#chmod 644 ~/.ssh/known_hosts
# Terraform plan
export GOOGLE_CLOUD_KEYFILE_JSON=${GCLOUD_TERRAFORM_PRIVATE_KEY_JSON}
......
#
## State storage
terraform {
backend "s3" {
......
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