Skip to content

Commit

Permalink
Merge pull request terraform-google-modules#10 from terraform-google-…
Browse files Browse the repository at this point in the history
…modules/ludo-cloudbuild

CI: Cloud Build linting trigger configuration
  • Loading branch information
morgante authored Aug 16, 2019
2 parents c426e09 + 5d447d2 commit 3b7c359
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 2 deletions.
21 changes: 21 additions & 0 deletions build/lint.cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

steps:
- name: "gcr.io/cloud-foundation-cicd/cft/developer-tools:0.0.1"
id: "lint"
args: ["/usr/local/bin/test_lint.sh"]
tags:
- "ci"
- "lint"
15 changes: 15 additions & 0 deletions examples/simple_example/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

terraform {
required_version = ">= 0.12"
Expand Down
15 changes: 15 additions & 0 deletions test/fixtures/simple_example/versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

terraform {
required_version = ">= 0.12"
Expand Down
4 changes: 2 additions & 2 deletions test/integration/simple_example/controls/gsutil.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 2018 Google LLC
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
15 changes: 15 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

terraform {
required_version = ">= 0.12"
Expand Down

0 comments on commit 3b7c359

Please sign in to comment.