Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

Commit 8205781

Browse files
committed
new workflow
1 parent f4292bb commit 8205781

3 files changed

Lines changed: 26 additions & 18 deletions

File tree

.github/workflows/terraform-lint.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/terraform.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Terraform
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
terraform-lint:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
# Important: This sets up your GITHUB_WORKSPACE environment variable
12+
- uses: actions/checkout@v2
13+
- uses: hashicorp/setup-terraform@v1
14+
15+
- name: fmt
16+
run: terraform fmt -recursive -check
17+
continue-on-error: true
18+
19+
- name: init
20+
run: terraform init
21+
22+
- name: validate
23+
run: terraform validate -no-color

examples/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
module "azuredevops_project" {
2-
source = "../modules/azure/terraform-azuredevops_project"
1+
module "project" {
2+
source = "registry.terraform.io/T-Systems-MMS/pipelines/project"
33
project = {
44
project_name = {
55
description = "service"
@@ -11,7 +11,7 @@ module "azuredevops_project" {
1111
}
1212
variable_group = {
1313
pipeline = {
14-
project_id = module.azuredevops_project.project["project_name"].id
14+
project_id = module.project.project["project_name"].id
1515
description = "Pipeline Settings"
1616
variable = {
1717
image = {

0 commit comments

Comments
 (0)