forked from Hithomelabs/CFTunnels
Hithomelabs/CFTunnels#<issue>: Add --method=POST to wget deploy trigger commands
The Portainer redeploy endpoint POST /api/deploy/{stackId} requires
POST requests. wget defaults to GET, so --method=POST is needed.
Applied to both Dev (test_image_build_push.yml) and Prod
(prod_image_tag_promote.yaml) workflow files.
This commit is contained in:
parent
cd270084ad
commit
a3a3917fc0
@ -63,6 +63,7 @@ jobs:
|
||||
API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY_PROD }}
|
||||
run: |
|
||||
wget -q --no-check-certificate --timeout=30 \
|
||||
--method=POST \
|
||||
--header="X-API-Key: $API_KEY" \
|
||||
-O - \
|
||||
"$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \
|
||||
|
||||
@ -72,6 +72,7 @@ jobs:
|
||||
API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY }}
|
||||
run: |
|
||||
wget -q --no-check-certificate --timeout=30 \
|
||||
--method=POST \
|
||||
--header="X-API-Key: $API_KEY" \
|
||||
-O - \
|
||||
"$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user