Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
G
gitlab-com-infrastructure
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
22
Merge Requests
22
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
gitlab-com
gitlab-com-infrastructure
Commits
41f2e0e2
Unverified
Commit
41f2e0e2
authored
Aug 28, 2019
by
Craig Barrett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test after adding missing CI/CD variables in GitLab UI
parent
e1d24474
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
.gitlab-ci.yml
.gitlab-ci.yml
+12
-12
No files found.
.gitlab-ci.yml
View file @
41f2e0e2
...
@@ -34,12 +34,12 @@ validate:
...
@@ -34,12 +34,12 @@ validate:
set +o pipefail
set +o pipefail
echo "running tf validate" # there's no output for empty builds otherwise
echo "running tf validate" # there's no output for empty builds otherwise
# SSH setup for module cloning
# SSH setup for module cloning
#
eval $(ssh-agent -s)
eval $(ssh-agent -s)
#
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
#
mkdir -p ~/.ssh
mkdir -p ~/.ssh
#
chmod 700 ~/.ssh
chmod 700 ~/.ssh
#
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
#
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
cp private/env_vars/common.env.example private/env_vars/common.env
cp private/env_vars/common.env.example private/env_vars/common.env
dir="environments" # For the "bin/tf-set-env" script
dir="environments" # For the "bin/tf-set-env" script
...
@@ -61,12 +61,12 @@ validate:
...
@@ -61,12 +61,12 @@ validate:
.tf_plan
:
&tf_plan
.tf_plan
:
&tf_plan
script
:
|
script
:
|
# SSH setup for module cloning
# SSH setup for module cloning
#
eval $(ssh-agent -s)
eval $(ssh-agent -s)
#
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
#
mkdir -p ~/.ssh
mkdir -p ~/.ssh
#
chmod 700 ~/.ssh
chmod 700 ~/.ssh
#
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
#
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
# Terraform plan
# Terraform plan
export GOOGLE_CLOUD_KEYFILE_JSON=${GCLOUD_TERRAFORM_PRIVATE_KEY_JSON}
export GOOGLE_CLOUD_KEYFILE_JSON=${GCLOUD_TERRAFORM_PRIVATE_KEY_JSON}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment