-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.06 KB
/
feature.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
41
42
43
name: Feature Branch
on:
pull_request:
paths:
- "*.tf"
- "files/helm/**/*.yaml"
types:
- opened
- synchronize
- reopened
- closed
branches:
- main
workflow_dispatch:
jobs:
feature_deploy:
if: github.event_name == 'pull_request' && github.event.action != 'closed'
uses: tx-pts-dai/github-workflows/.github/workflows/tf-feature.yaml@v2
with:
environment: examples
tf_dir: tests/main
tf_vars: |
name = "${{ github.head_ref }}"
feature_destroy:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
uses: tx-pts-dai/github-workflows/.github/workflows/tf-cleanup.yaml@v2
with:
environment: examples
tf_dir: tests/main
tf_vars: |
name = "${{ github.head_ref }}"
manual_feature_destroy:
if: github.event_name == 'workflow_dispatch'
uses: tx-pts-dai/github-workflows/.github/workflows/tf-cleanup.yaml@v2
with:
environment: examples
tf_dir: tests/main
tf_vars: |
name = "${{ github.ref_name }}"