-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.37 KB
/
basic.yml
File metadata and controls
59 lines (50 loc) · 1.37 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This is a basic workflow to help you get started with Actions
name: CI-TF
# Controls when the workflow will run
on:
#push:
# only trigger on branches that have a tf/ prefix
# branches: '*'
pull_request:
types: [opened]
branches:
- 'main'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# inputs:
# tf-options:
# type: choice
# description: Which tf file to run
# required: true
# options:
# - foo/gke.tf
# - bar/gke.tf
# environment:
# type: environment
jobs:
Setup:
runs-on: ubuntu-latest
environment:
name: dev
steps:
- name: Get Host Info
run: lsb_release -a
- uses: actions/checkout@v3
with:
# checkout full tree
fetch-depth: 0
- name: Validate Workflows Unchanged
id: check-workflows-changed
run: |
git diff --quiet HEAD origin/main -- ./.github/workflows
TF:
uses: ./.github/workflows/terraform.yml
needs: [Setup]
secrets:
IDENTITYPROVIDER: ${{ secrets.IDENTITYPROVIDER }}
SVC: ${{ secrets.SVC }}
LOCATION: ${{ secrets.LOCATION }}
CLUSTER: ${{ secrets.CLUSTER }}
PROJECT: ${{ secrets.PROJECT }}
#with:
# fileName: "${{ inputs.tf-options }}"