-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.48 KB
/
pr_container_apps__user_ms_infra.yml
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
name: Code Review - container app infra
on:
workflow_dispatch:
pull_request:
branches:
- main
- releases/*
types:
- opened
- edited
- synchronize
- reopened
- ready_for_review
paths:
- 'infra/container_apps/user-ms/**'
- '.github/workflows/pr_container_apps_infra.yml'
- '.github/workflows/call_code_review_infra.yml'
jobs:
code_review_dev:
uses: ./.github/workflows/call_code_review_infra.yml
name: '[DEV] Container Apps Infra Code Review'
if: ${{ !startsWith(github.ref_name, 'releases/') }}
secrets: inherit
with:
environment: dev
dir: ./infra/container_apps/user-ms
env_vars: |
TF_VAR_image_tag=sha-$(git rev-parse --short ${{ github.sha }})
code_review_uat:
uses: ./.github/workflows/call_code_review_infra.yml
name: '[UAT] Container Apps Infra Code Review'
if: ${{ startsWith(github.ref_name, 'releases/') }}
secrets: inherit
with:
environment: uat
dir: ./infra/container_apps/user-ms
env_vars: |
TF_VAR_image_tag=sha-$(git rev-parse --short ${{ github.sha }})
code_review_prod:
uses: ./.github/workflows/call_code_review_infra.yml
name: '[PROD] Container Apps Infra Code Review'
if: ${{ startsWith(github.ref_name, 'releases/') }}
secrets: inherit
with:
environment: prod
dir: ./infra/container_apps/user-ms
env_vars: |
TF_VAR_image_tag=sha-$(git rev-parse --short ${{ github.sha }})