-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (36 loc) · 1.13 KB
/
webservers-infra-terraform.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "Create Webservers Infrastructure"
on:
workflow_dispatch:
inputs:
terraform-version:
type: number
required: false
default: 1.5.4
description: The terraform version used for the github action.
cache-hash-file:
type: string
required: false
default: '/providers.tf'
description: The file used to create common hash cache naming.
push:
branches:
- main
paths:
- "terraform/**"
- ".github/workflows/terraform-infra-set-up.yaml"
- ".github/workflows/webservers-infra-terraform.yaml"
pull_request:
paths:
- "terraform/**"
- ".github/workflows/terraform-infra-set-up.yaml"
- ".github/workflows/webservers-infra-terraform.yaml"
concurrency:
group: terraform-webservers
jobs:
webserversInfra:
name: Create infrastructure for webservers
uses: ./.github/workflows/terraform-infra-set-up.yaml
with:
terraform-dir: "terraform/linux-webserver-with-loadbalancer"
terraform-version: ${{ inputs.terraform-version != '' && inputs.terraform-version || vars.TERRAFORM_VERSION }}
secrets: inherit