@@ -34,14 +34,15 @@ jobs:
34
34
creds : ${{ secrets.AZURE_CREDENTIALS }}
35
35
36
36
- name : ' Sync the NGINX configuration from the GitHub repository to the NGINXaaS for Azure deployment'
37
- uses : nginxinc/nginx-for-azure-deploy-action@v0.3.1
37
+ uses : nginxinc/nginx-for-azure-deploy-action/github-action @v0.4.0
38
38
with :
39
39
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
40
40
resource-group-name : ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
41
41
nginx-deployment-name : ${{ secrets.NGINX_DEPLOYMENT_NAME }}
42
42
nginx-config-directory-path : config/
43
43
nginx-root-config-file : nginx.conf
44
44
transformed-nginx-config-directory-path : /etc/nginx/
45
+ debug : false
45
46
` ` `
46
47
47
48
### Sample workflow that authenticates with Azure using OIDC
@@ -76,14 +77,15 @@ jobs:
76
77
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
77
78
78
79
- name : ' Sync the NGINX configuration from the GitHub repository to the NGINXaaS for Azure deployment'
79
- uses : nginxinc/nginx-for-azure-deploy-action@v0.3.1
80
+ uses : nginxinc/nginx-for-azure-deploy-action/github-action @v0.4.0
80
81
with :
81
82
subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
82
83
resource-group-name : ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
83
84
nginx-deployment-name : ${{ secrets.NGINX_DEPLOYMENT_NAME }}
84
85
nginx-config-directory-path : config/
85
86
nginx-root-config-file : nginx.conf
86
87
transformed-nginx-config-directory-path : /etc/nginx/
88
+ debug : false
87
89
` ` `
88
90
89
91
> **Note:**
@@ -104,13 +106,14 @@ To use this action to sync the configuration files from this example, the direct
104
106
105
107
` ` ` yaml
106
108
- name: 'Sync the NGINX configuration from the GitHub repository to the NGINXaaS for Azure deployment'
107
- uses: nginxinc/nginx-for-azure-deploy-action@v0.3.1
109
+ uses: nginxinc/nginx-for-azure-deploy-action/github-action @v0.4.0
108
110
with:
109
111
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
110
112
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
111
113
nginx-deployment-name: ${{ secrets.NGINX_DEPLOYMENT_NAME }}
112
114
nginx-config-directory-path: config/
113
115
nginx-root-config-file: nginx.conf
116
+ debug: false
114
117
` ` `
115
118
116
119
By default, the action uses a file's relative path to `nginx-config-directory-path` in the repository as the file path in the NGINXaaS for Azure deployment.
@@ -136,14 +139,15 @@ The action supports an optional input `transformed-nginx-config-directory-path`
136
139
137
140
` ` ` yaml
138
141
- name: 'Sync the NGINX configuration from the Git repository to the NGINXaaS for Azure deployment'
139
- uses: nginxinc/nginx-for-azure-deploy-action@v0.3.1
142
+ uses: nginxinc/nginx-for-azure-deploy-action/github-action @v0.4.0
140
143
with:
141
144
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
142
145
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
143
146
nginx-deployment-name: ${{ secrets.NGINX_DEPLOYMENT_NAME }}
144
147
nginx-config-directory-path: config/
145
148
nginx-root-config-file: nginx.conf
146
149
transformed-nginx-config-directory-path: /etc/nginx/
150
+ debug: false
147
151
` ` `
148
152
The transformed paths of the two configuration files in the NGINXaaS for Azure deployment are summarized in the following table
149
153
@@ -168,20 +172,21 @@ See the example below
168
172
169
173
` ` ` yaml
170
174
- name: "Sync NGINX certificates to NGINXaaS for Azure"
171
- uses: nginxinc/nginx-for-azure-deploy-action@v0.3.1
175
+ uses: nginxinc/nginx-for-azure-deploy-action/github-action @v0.4.0
172
176
with:
173
177
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
174
178
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
175
179
nginx-deployment-name: ${{ secrets.NGINX_DEPLOYMENT_NAME }}
176
180
nginx-deployment-location: ${{ secrets.NGINX_DEPLOYMENT_LOCATION }}
177
181
nginx-certificates: '[{"certificateName": "$NGINX_CERT_NAME", "keyvaultSecret": "https://$NGINX_VAULT_NAME.vault.azure.net/secrets/$NGINX_CERT_NAME", "certificateVirtualPath": "/etc/nginx/ssl/my-cert.crt", "keyVirtualPath": "/etc/nginx/ssl/my-cert.key" } ]'
182
+ debug: false
178
183
` ` `
179
184
180
185
# # Handling NGINX configuration and certificates
181
186
182
187
` ` ` yaml
183
188
- name: "Sync NGINX configuration- multi file and certificate to NGINXaaS for Azure"
184
- uses: nginxinc/nginx-for-azure-deploy-action@v0.3.1
189
+ uses: nginxinc/nginx-for-azure-deploy-action/github-action @v0.4.0
185
190
with:
186
191
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
187
192
resource-group-name: ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
@@ -191,4 +196,5 @@ See the example below
191
196
nginx-root-config-file: nginx.conf
192
197
transformed-nginx-config-directory-path: /etc/nginx/
193
198
nginx-certificates: '[{"certificateName": "$NGINX_CERT_NAME", "keyvaultSecret": "https://$NGINX_VAULT_NAME.vault.azure.net/secrets/$NGINX_CERT_NAME", "certificateVirtualPath": "/etc/nginx/ssl/my-cert.crt", "keyVirtualPath": "/etc/nginx/ssl/my-cert.key" } ]'
199
+ debug: false
194
200
` ` `
0 commit comments