Skip to content

Commit a625b59

Browse files
authored
Merge pull request #38 from nginxinc/ps-dev-swagger-version
Use latest service swagger; Add deprecation warning for certificate deployment; Only output conf when debug flag is set
2 parents 8cd7bdf + b23ab51 commit a625b59

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

github-action/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ inputs:
1313
nginx-deployment-location:
1414
description: "The location where the NGINX deployment is located. Example westcentralus"
1515
required: false
16+
deprecationMessage: "This field is not in use and will be removed in a future release. Consider dropping it from your Github Action configuration."
1617
nginx-config-directory-path:
1718
description: 'The NGINX configuration directory path relative to the root of the Git repository, example: "config/".'
1819
required: false

github-action/src/deploy-certificate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ do
143143
)
144144
if [[ "$debug" == true ]]; then
145145
az_cmd+=("--debug")
146+
echo "${az_cmd[@]}"
146147
fi
147-
echo "${az_cmd[@]}"
148148
set +e
149149
"${az_cmd[@]}"
150150
set -e

github-action/src/deploy-config.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ echo "Listing the NGINX configuration file paths in the tarball."
133133
tar -tf "$config_tarball"
134134

135135
encoded_config_tarball=$(base64 "$config_tarball")
136-
echo "The base64 encoded NGINX configuration tarball"
137-
echo "$encoded_config_tarball"
136+
137+
if [[ "$debug" == true ]]; then
138+
echo "The base64 encoded NGINX configuration tarball"
139+
echo "$encoded_config_tarball"
140+
fi
138141
echo ""
139142

140143
# Synchronize the NGINX configuration tarball to the NGINXaaS for Azure deployment.
@@ -174,7 +177,7 @@ az_cmd=(
174177

175178
if [[ "$debug" == true ]]; then
176179
az_cmd+=("--debug")
180+
echo "${az_cmd[@]}"
177181
fi
178182

179-
echo "${az_cmd[@]}"
180183
"${az_cmd[@]}"

github-action/src/nginx-for-azure-certificate-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"resources": [
4343
{
4444
"type": "NGINX.NGINXPLUS/nginxDeployments/certificates",
45-
"apiVersion": "2021-05-01-preview",
45+
"apiVersion": "2024-11-01-preview",
4646
"name": "[concat(parameters('nginxDeploymentName'), concat('/', parameters('name')))]",
4747
"location": "[parameters('location')]",
4848
"properties": {

github-action/src/nginx-for-azure-configuration-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"resources": [
2727
{
2828
"type": "NGINX.NGINXPLUS/nginxDeployments/configurations",
29-
"apiVersion": "2021-05-01-preview",
29+
"apiVersion": "2024-11-01-preview",
3030
"name": "[concat(parameters('nginxDeploymentName'), '/default')]",
3131
"properties": {
3232
"rootFile": "[parameters('rootFile')]",

0 commit comments

Comments
 (0)