-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
42 lines (38 loc) · 1.1 KB
/
azure-pipelines.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
variables:
- template: .azure-pipelines/variables.yml
name: ${{variables.name}}-pipeline
trigger:
branches:
include:
- main
paths:
exclude:
- .azure-pipelines
- azure-pipelines.yml
- README.md
schedules:
- cron: "0 20 * * 0"
displayName: Weekly run on Sunday
branches:
include:
- main
always: true
stages:
- stage: run
displayName: Run
condition: eq(variables['Build.SourceBranchName'], 'main')
jobs:
- job: run
displayName: Setup and Run
pool:
vmImage: ${{variables.vmImage}}
steps:
- template: .azure-pipelines/run-aws-nuke.yml
parameters:
name: ${{ variables.name }}
targetServiceConnection: ${{ variables.targetServiceConnection }}
logArchiveServiceConnection: ${{ variables.logArchiveServiceConnection }}
awsRegion: ${{ variables.awsRegion }}
awsNukeConfig: ${{ variables.awsNukeConfig }}
awsNukeMode: ${{ variables.awsNukeMode }}
logsS3Bucket: ${{ variables.logsS3Bucket }}