Skip to content

Commit 1b3ddcf

Browse files
committed
Combined multifile and certificate update into one step
1 parent c2deb73 commit 1b3ddcf

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/testNginxForAzureDeploy.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ jobs:
2929
client-id: ${{ secrets.AZURE_CLIENT_ID }}
3030
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
3131
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
32-
- name: "Sync NGINX certificate to NGINX for Azure - single cert"
33-
uses: nginxinc/[email protected]
34-
with:
35-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
36-
resource-group-name: $TEST_RESOURCE_GROUP_NAME
37-
nginx-deployment-name: $NGINX_DEPLOYMENT_NAME
38-
nginx-certificate-details: '[{"certificateName": "$NGINX_CERT_NAME", "keyvaultSecret": "https://$NGINX_VAULT_NAME.vault.azure.net/secrets/$NGINX_CERT_NAME", "certificateVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_NUMBER/my-cert.crt", "keyVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_NUMBER/my-cert.key" } ]'
3932

4033
- name: "Update config - single file"
4134
shell: bash
@@ -62,15 +55,17 @@ jobs:
6255
cat test/configs/single/nginx.conf
6356
sed -i 's/000000/'"$GITHUB_RUN_ID"'/g' test/configs/multi/conf.d/proxy.conf
6457
cat test/configs/multi/conf.d/proxy.conf
65-
- name: "Sync NGINX configuration to NGINX for Azure - multi file"
58+
- name: "Sync NGINX configuration and certificate to NGINX for Azure - multi file"
6659
uses: nginxinc/[email protected]
6760
with:
6861
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
6962
resource-group-name: $TEST_RESOURCE_GROUP_NAME
7063
nginx-deployment-name: $NGINX_DEPLOYMENT_NAME
64+
nginx-resource-location: "westcentralus"
7165
nginx-config-directory-path: test/configs/multi/
7266
nginx-root-config-file: $NGINX_ROOT_CONFIG_FILE
7367
transformed-nginx-config-directory-path: $NGINX_TRANSFORMED_CONFIG_DIR_PATH
68+
nginx-certificate-details: '[{"certificateName": "$NGINX_CERT_NAME", "keyvaultSecret": "https://$NGINX_VAULT_NAME.vault.azure.net/secrets/$NGINX_CERT_NAME", "certificateVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_NUMBER/my-cert.crt", "keyVirtualPath": "/etc/nginx/ssl/$GITHUB_RUN_NUMBER/my-cert.key" } ]'
7469

7570
- name: "Validate config update"
7671
shell: bash

0 commit comments

Comments
 (0)