Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a36e00c1
Commit
a36e00c1
authored
Sep 24, 2021
by
Willian Paixao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Terraform.latest.gitlab-ci.yml template
Changelog: changed
parent
a9dbb0ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
14 deletions
+4
-14
lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
+2
-5
lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml
lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml
+1
-8
spec/lib/gitlab/ci/templates/terraform_latest_gitlab_ci_yaml_spec.rb
...tlab/ci/templates/terraform_latest_gitlab_ci_yaml_spec.rb
+1
-1
No files found.
lib/gitlab/ci/templates/Terraform.latest.gitlab-ci.yml
View file @
a36e00c1
...
...
@@ -7,20 +7,17 @@ include:
-
template
:
Terraform/Base.latest.gitlab-ci.yml
# https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml
stages
:
-
init
-
validate
-
build
-
deploy
-
cleanup
init
:
extends
:
.terraform:init
fmt
:
extends
:
.terraform:fmt
needs
:
[]
validate
:
extends
:
.terraform:validate
needs
:
[]
build
:
extends
:
.terraform:build
...
...
lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml
View file @
a36e00c1
...
...
@@ -21,18 +21,11 @@ cache:
paths
:
-
${TF_ROOT}/.terraform/
.terraform:init: &terraform_init
stage
:
init
script
:
-
cd ${TF_ROOT}
-
gitlab-terraform init
.terraform:fmt: &terraform_fmt
stage
:
validate
needs
:
[]
script
:
-
cd ${TF_ROOT}
-
gitlab-terraform fmt
-check -recursive
-
gitlab-terraform fmt
allow_failure
:
true
.terraform:validate: &terraform_validate
...
...
spec/lib/gitlab/ci/templates/terraform_latest_gitlab_ci_yaml_spec.rb
View file @
a36e00c1
...
...
@@ -27,7 +27,7 @@ RSpec.describe 'Terraform.latest.gitlab-ci.yml' do
context
'on master branch'
do
it
'creates init, validate and build jobs'
,
:aggregate_failures
do
expect
(
pipeline
.
errors
).
to
be_empty
expect
(
build_names
).
to
include
(
'
init'
,
'
validate'
,
'build'
,
'deploy'
)
expect
(
build_names
).
to
include
(
'validate'
,
'build'
,
'deploy'
)
end
end
...
...
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