-
Notifications
You must be signed in to change notification settings - Fork 130
110 lines (101 loc) · 3.49 KB
/
prerelease_canaries.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: . 🐤 Canaries
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to test'
required: true
linux:
description: '🐧 Should create canaries for Linux?'
type: boolean
default: true
required: false
macos:
description: '🍏 Should create canaries for MacOS?'
type: boolean
default: true
required: false
windows:
description: '🪟 Should create canaries for Windows?'
type: boolean
default: true
required: false
prune:
description: '💥 Should prune previous canaries?'
type: boolean
default: true
required: false
alerts:
description: '🚨 Should create alerts?'
type: boolean
default: true
required: false
permissions:
id-token: write
jobs:
canaries-windows:
if: ${{ github.event.inputs.windows == 'true' }}
uses: ./.github/workflows/component_canaries.yml
with:
PLATFORM: "windows"
TAG: ${{ github.event.inputs.tag }}
secrets:
AWS_VPC_SUBNET: ${{secrets.AWS_VPC_SUBNET}}
CROWDSTRIKE_CLIENT_ID: ${{secrets.CROWDSTRIKE_CLIENT_ID}}
CROWDSTRIKE_CLIENT_SECRET: ${{secrets.CROWDSTRIKE_CLIENT_SECRET}}
CROWDSTRIKE_CUSTOMER_ID: ${{secrets.CROWDSTRIKE_CUSTOMER_ID}}
canaries-linux:
if: ${{ github.event.inputs.linux == 'true' }}
uses: ./.github/workflows/component_canaries.yml
with:
PLATFORM: "linux"
TAG: ${{ github.event.inputs.tag }}
secrets:
AWS_VPC_SUBNET: ${{secrets.AWS_VPC_SUBNET}}
CROWDSTRIKE_CLIENT_ID: ${{secrets.CROWDSTRIKE_CLIENT_ID}}
CROWDSTRIKE_CLIENT_SECRET: ${{secrets.CROWDSTRIKE_CLIENT_SECRET}}
CROWDSTRIKE_CUSTOMER_ID: ${{secrets.CROWDSTRIKE_CUSTOMER_ID}}
canaries-macos:
if: ${{ github.event.inputs.macos == 'true' }}
uses: ./.github/workflows/component_canaries.yml
with:
PLATFORM: "macos"
TAG: ${{ github.event.inputs.tag }}
secrets:
AWS_VPC_SUBNET: ${{secrets.AWS_VPC_SUBNET}}
CROWDSTRIKE_CLIENT_ID: ${{secrets.CROWDSTRIKE_CLIENT_ID}}
CROWDSTRIKE_CLIENT_SECRET: ${{secrets.CROWDSTRIKE_CLIENT_SECRET}}
CROWDSTRIKE_CUSTOMER_ID: ${{secrets.CROWDSTRIKE_CUSTOMER_ID}}
get_previous_tag:
runs-on: ubuntu-20.04
# Map a step output to a job output
outputs:
previous_tag: ${{ steps.previous_tag_step.outputs.PREVIOUS_TAG }}
steps:
- id: previous_tag_step
run: .github/workflows/scripts/previous_version.sh ${{ inputs.TAG }} >> "$GITHUB_OUTPUT"
prune-previous-canaries-linux:
needs: get_previous_tag
if: ${{ github.event.inputs.prune == 'true' && github.event.inputs.linux == 'true' }}
uses: ./.github/workflows/component_canaries_prune.yml
with:
PLATFORM: "linux"
TAG: ${{ needs.get_previous_tag.outputs.previous_tag }}
secrets:
AWS_VPC_SUBNET: ${{secrets.AWS_VPC_SUBNET}}
prune-previous-canaries-windows:
needs: get_previous_tag
if: ${{ github.event.inputs.prune == 'true' && github.event.inputs.windows == 'true' }}
uses: ./.github/workflows/component_canaries_prune.yml
with:
PLATFORM: "windows"
TAG: ${{ needs.get_previous_tag.outputs.previous_tag }}
secrets:
AWS_VPC_SUBNET: ${{secrets.AWS_VPC_SUBNET}}
canary-alerts:
if: ${{ github.event.inputs.alerts == 'true' }}
uses: ./.github/workflows/component_canary_alerts.yml
with:
TAG: ${{ github.event.inputs.tag }}
secrets:
AWS_VPC_SUBNET: ${{secrets.AWS_VPC_SUBNET}}