-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
48 lines (46 loc) · 1.32 KB
/
action.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
# action.yml
name: 'Manage NSG'
description: 'Add/Remove NSG Rules using the public IP of the hosted runner'
inputs:
azure-credentials:
required: true
description: 'SPN details as secrets.AZURE_CREDENTIALS'
rule-priority-start:
required: false
default: '300'
description: 'Start value for the priority range to be used'
rule-priority-range:
required: false
default: '100'
description: 'range of the NSG priority values to be used when multiple agents are deploying sharing the same NSG'
rule-inbound-port:
required: false
default: '443'
description: 'Port for the inbound rule'
rule-id-for-removal:
required: false
default: ''
description: 'rule id to remove'
rule-nsg-resource-group-name:
required: true
description: 'Resource Group of the NSG'
rule-nsg-name:
required: true
description: 'Nme of the NSG'
outputs:
rule_name: # id of output
description: 'Created NSG Rule Name'
branding:
icon: 'shield'
color: 'blue'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.azure-credentials }}
- ${{ inputs.rule-priority-start }}
- ${{ inputs.rule-priority-range }}
- ${{ inputs.rule-inbound-port }}
- ${{ inputs.rule-id-for-removal }}
- ${{ inputs.rule-nsg-resource-group-name }}
- ${{ inputs.rule-nsg-name }}