Skip to content

Commit 7125ae3

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 12075cf commit 7125ae3

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
@@ -46,7 +46,7 @@ jobs:
4646
- name: "Validate config update - single file"
4747
shell: bash
4848
run: |
49-
wget -S -q --spider http://${{ secrets.NGINX_DEPLOYMENT_IP }} 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"
49+
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_IP }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
5050
- name: "Update config - multi file"
5151
shell: bash
5252
run: |
@@ -69,12 +69,12 @@ jobs:
6969
- name: "Validate config update"
7070
shell: bash
7171
run: |
72-
wget -S -q --spider http://${{ secrets.NGINX_DEPLOYMENT_IP }} 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"
72+
curl -s -o /dev/null -D - http://${{ secrets.NGINX_DEPLOYMENT_IP }} | grep "Github-Run-Id: $GITHUB_RUN_ID"
7373
- name: "Validate certificate update"
7474
uses: azure/cli@v2
7575
with:
7676
inlineScript: |
7777
echo "-----BEGIN CERTIFICATE-----" > /tmp/$GITHUB_RUN_ID.tmp
7878
az keyvault certificate show --vault-name $NGINX_VAULT_NAME -n $NGINX_CERT_NAME | jq -r .cer | cat >> /tmp/$GITHUB_RUN_ID.tmp
7979
echo "-----END CERTIFICATE-----" >> /tmp/$GITHUB_RUN_ID.tmp
80-
wget -S -q --spider https://${{ secrets.NGINX_DEPLOYMENT_IP }} --ca-certificate=/tmp/$GITHUB_RUN_ID.tmp 2>&1 | grep "Github-Run-Id: $GITHUB_RUN_ID"
80+
curl -s -o /dev/null -D - https://${{ secrets.NGINX_DEPLOYMENT_IP }} --cacert /tmp/$GITHUB_RUN_ID.tmp | grep "Github-Run-Id: $GITHUB_RUN_ID"

0 commit comments

Comments
 (0)