Skip to content

Commit bebd5b5

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/testNginxForAzureDeploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3636
resource-group-name: $TEST_RESOURCE_GROUP_NAME
3737
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" } ]'
3938

4039
- name: "Update config - single file"
4140
shell: bash
@@ -62,15 +61,17 @@ jobs:
6261
cat test/configs/single/nginx.conf
6362
sed -i 's/000000/'"$GITHUB_RUN_ID"'/g' test/configs/multi/conf.d/proxy.conf
6463
cat test/configs/multi/conf.d/proxy.conf
65-
- name: "Sync NGINX configuration to NGINX for Azure - multi file"
64+
- name: "Sync NGINX configuration and certificate to NGINX for Azure - multi file"
6665
uses: nginxinc/[email protected]
6766
with:
6867
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
6968
resource-group-name: $TEST_RESOURCE_GROUP_NAME
7069
nginx-deployment-name: $NGINX_DEPLOYMENT_NAME
70+
nginx-resource-location: "westcentralus"
7171
nginx-config-directory-path: test/configs/multi/
7272
nginx-root-config-file: $NGINX_ROOT_CONFIG_FILE
7373
transformed-nginx-config-directory-path: $NGINX_TRANSFORMED_CONFIG_DIR_PATH
74+
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" } ]'
7475

7576
- name: "Validate config update"
7677
shell: bash

0 commit comments

Comments
 (0)