File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
NGINX_TRANSFORMED_CONFIG_DIR_PATH : /etc/nginx/
11
11
NGINX_ROOT_CONFIG_FILE : nginx.conf
12
12
TEST_RESOURCE_GROUP_NAME : n4a-long-eastus2-workload
13
+ TEST_SECURITY_GROUP_NAME : n4a-long-eastus2-workload-pub
13
14
NGINX_CERT_NAME : n4a-long-eastus2-basic-crt
14
15
NGINX_VAULT_NAME : nlbtest-customer
15
16
29
30
client-id : ${{ secrets.AZURE_CLIENT_ID }}
30
31
tenant-id : ${{ secrets.AZURE_TENANT_ID }}
31
32
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
32
-
33
+ - name : get runner ip addresses
34
+ id : ip
35
+ uses : haythem/public-ip@v1.3
36
+ - name : allow runner ip access to the longivity deployment
37
+ shell : bash
38
+ run : |
39
+ az network nsg rule create \
40
+ --resource-group "$TEST_RESOURCE_GROUP_NAME"\
41
+ --nsg-name "$TEST_SECURITY_GROUP_NAME"\
42
+ --name allow_github_runner_access \
43
+ --priority 1003 \
44
+ --direction Inbound \
45
+ --access Allow \
46
+ --protocol Tcp \
47
+ --source-address-prefixes "${{ steps.ip.outputs.ipv4 }}/32" \
48
+ --source-port-ranges "*" \
49
+ --destination-address-prefixes "*" \
50
+ --destination-port-ranges 80 443
33
51
- name : " Update config - single file"
34
52
shell : bash
35
53
run : |
You can’t perform that action at this time.
0 commit comments