Skip to content

Commit 3140756

Browse files
committed
Use curl instead of wget for passing traffic
Azure CLI does not support wget from within the container for its action so swapping the invocations entirely with curl instead.
1 parent 4bc32dd commit 3140756

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/github-action-test-nginxaas-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: "Validate config update - single file"
4848
shell: bash
4949
run: |
50-
wget -S -q --spider http://${{ secrets.NGINX_DEPLOYMENT_IP }} 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"
50+
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_IP }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
5151
- name: "Update config - multi file"
5252
shell: bash
5353
run: |
@@ -71,7 +71,7 @@ jobs:
7171
- name: "Validate config update"
7272
shell: bash
7373
run: |
74-
wget -S -q --spider http://${{ secrets.NGINX_DEPLOYMENT_IP }} 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"
74+
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_IP }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
7575
- name: "Validate certificate update"
7676
uses: azure/cli@v2
7777
with:
@@ -81,4 +81,4 @@ jobs:
8181
az keyvault certificate show --vault-name $NGINX_VAULT_NAME -n $NGINX_CERT_NAME | jq -r .cer | cat >> /tmp/$GITHUB_RUN_ID.tmp
8282
echo "-----END CERTIFICATE-----" >> /tmp/$GITHUB_RUN_ID.tmp
8383
cat /tmp/$GITHUB_RUN_ID.tmp
84-
wget https://${{ secrets.NGINX_DEPLOYMENT_IP }} --ca-certificate=/tmp/$GITHUB_RUN_ID.tmp 2>&1
84+
curl -s -o /dev/null -D - https://${{ secrets.NGINX_DEPLOYMENT_IP }} --ca-cert /tmp/$GITHUB_RUN_ID.tmp | grep "Github-Run-Id: $GITHUB_RUN_ID"

0 commit comments

Comments
 (0)