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