Skip to content

Commit ffe7201

Browse files
author
Emre Dogan
committed
environment reviewers
1 parent 5548f17 commit ffe7201

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/deploy-demo-envs.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ jobs:
125125
dt_url_gen3: ${{ github.event.inputs.dt_url_gen3_live }}
126126
dt_oauth_sso_endpoint: ${{ vars.DT_OAUTH_SSO_ENDPOINT }}
127127
dt_oauth_account_urn: ${{ vars.DT_OAUTH_ACCOUNT_URN }}
128+
environment_name: demo-live
129+
environment_url: ${{ github.event.inputs.dt_tenant_live }}
130+
environment_reviewers:
131+
- eemrdog #Dynatrace/ace-box-owners
128132
secrets:
129133
dt_api_token: ${{ secrets.DT_API_TOKEN_LIVE_dhg95339 }}
130134
gcp_credentials_json: '${{ secrets.GCP_CREDENTIALS_JSON }}'
131135
dt_oauth_client_id: ${{ secrets.DT_OAUTH_CLIENT_ID }}
132-
dt_oauth_client_secret: ${{ secrets.DT_OAUTH_CLIENT_SECRET }}
133-
environment:
134-
name: demo-live
135-
url: ${{ github.event.inputs.dt_tenant_live }}
136-
reviewers:
137-
- eemrdog #Dynatrace/ace-box-owners
136+
dt_oauth_client_secret: ${{ secrets.DT_OAUTH_CLIENT_SECRET }}

.github/workflows/validation.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ on:
4141
description: "Dynatrace OAuth Account URN"
4242
required: false
4343
type: string
44-
44+
environment_name:
45+
required: false
46+
type: string
47+
environment_url:
48+
required: false
49+
type: string
50+
environment_reviewers:
51+
required: false
52+
type: string
4553
secrets:
4654
dt_api_token:
4755
description: "Dynatrace API Token"
@@ -90,7 +98,10 @@ jobs:
9098
apply:
9199
needs: preparation
92100
runs-on: spot #codebuild-acebox-runners-${{ github.run_id }}-${{ github.run_attempt }}
93-
101+
environment:
102+
name: ${{ inputs.environment_name }}
103+
url: ${{ inputs.environment_url }}
104+
reviewers: [${{ inputs.environment_reviewers }}]
94105
env:
95106
# DESTROY_RESOURCES: ${{ inputs.destroy_resources }} # Set to "true" to enable resource destruction
96107
TF_VAR_dt_tenant: ${{ inputs.dt_tenant != '' && inputs.dt_tenant || vars.DT_TENANT }}

0 commit comments

Comments
 (0)