Skip to content

Commit 874bb23

Browse files
committed
Renamed nginx-certificate-details parameter to nginx-certificates
1 parent 5f8216c commit 874bb23

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ inputs:
2828
can be used to overwrite the file paths when the action synchronizes the files to the NGINX for Azure deployment.'
2929
required: false
3030
default: ""
31-
nginx-certificate-details:
31+
nginx-certificates:
3232
description: 'An array of JSON objects each with keys nginx_cert_name, keyvault_secret, certificate_virtual_path and key_virtual_path. Example: [{"certificateName": "server1", "keyvaultSecret": "https://...", "certificateVirtualPath": "/etc/ssl/certs/server1.crt", "keyVirtualPath": "/etc/ssl/certs/server1.key" }, {"name": "server2", "keyvaultSecret": "https://...", "certificateVirtualPath": "/etc/ssl/certs/server2.crt", "keyVirtualPath": "/etc/ssl/certs/server2.key" }] '
3333
required: false
3434
runs:
3535
using: "composite"
3636
steps:
3737
- name: "Synchronize NGINX certificate(s) from the Git repository to an NGINX for Azure deployment"
38-
run: ${{github.action_path}}/src/deploy-certificate.sh --subscription_id=${{ inputs.subscription-id }} --resource_group_name=${{ inputs.resource-group-name }} --nginx_deployment_name=${{ inputs.nginx-deployment-name }} --nginx_resource_location=${{ inputs.nginx-deployment-location }} --certificates=${{ toJSON(inputs.nginx-certificate-details) }}
39-
if: ${{ inputs.nginx-deployment-location != '' && inputs.nginx-certificate-details != '' }}
38+
run: ${{github.action_path}}/src/deploy-certificate.sh --subscription_id=${{ inputs.subscription-id }} --resource_group_name=${{ inputs.resource-group-name }} --nginx_deployment_name=${{ inputs.nginx-deployment-name }} --nginx_resource_location=${{ inputs.nginx-deployment-location }} --certificates=${{ toJSON(inputs.nginx-certificates) }}
39+
if: ${{ inputs.nginx-deployment-location != '' && inputs.nginx-certificates != '' }}
4040
shell: bash
4141
- name: "Synchronize NGINX configuration from the Git repository to an NGINX for Azure deployment"
4242
run: ${{github.action_path}}/src/deploy-config.sh --subscription_id=${{ inputs.subscription-id }} --resource_group_name=${{ inputs.resource-group-name }} --nginx_deployment_name=${{ inputs.nginx-deployment-name }} --config_dir_path=${{ inputs.nginx-config-directory-path }} --root_config_file=${{ inputs.nginx-root-config-file }} --transformed_config_dir_path=${{ inputs.transformed-nginx-config-directory-path }}

src/deploy-certificate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ then
5454
fi
5555
if [[ ! -v certificates ]];
5656
then
57-
echo "Please set 'nginx-certificate-details' ..."
57+
echo "Please set 'nginx-certificates' ..."
5858
exit 1
5959
fi
6060

0 commit comments

Comments
 (0)