-
Notifications
You must be signed in to change notification settings - Fork 62
59 lines (48 loc) · 1.71 KB
/
GH-actions-ACU1-BRW-HUB-G1.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
54
55
56
57
58
59
# This is a basic workflow to help you get started with Actions
name: Deploy_ACU1_BRW_HUB_RG_G1
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
# push:
# branches: [dev]
pull_request:
branches: [dev]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
APP: HUB
ENV: G1
PREFIX: ACU1
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
EnvironmentDeploy:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Add wait on concurrent workflows executing via https://github.com/marketplace/actions/action-turnstyle
- name: Turnstyle
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Login via Az module
uses: azure/login@v1
with:
creds: ${{secrets.ACU1_BRW_HUB_RG_G0}}
enable-AzPSSession: true
- name: G0_Sub
uses: Azure/powershell@v1
with:
inlineScript: ./ADF/release-az/AzDeploy.ps1 -app $env:app -env $env:env -Prefix $env:prefix -stage "sub-InitialRG" -FullUpload
azPSVersion: latest
- name: Login via Az module
uses: azure/login@v1
with:
creds: ${{secrets.ACU1_BRW_HUB_RG_G1}}
enable-AzPSSession: true
- name: G1_RG
uses: Azure/powershell@v1
with:
inlineScript: ./ADF/release-az/AzDeploy.ps1 -app $env:app -env $env:env -Prefix $env:prefix -stage "ALL"
azPSVersion: latest