forked from Hithomelabs/CFTunnels
[FIX] Add --method=POST to wget in Portainer Redeploy triggers #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/wget-method-post"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Portainer redeploy endpoint
POST /api/deploy/{stackId}requires POST requests, butwgetdefaults to GET. This fix adds--method=POSTto both workflow files.Changes
.gitea/workflows/test_image_build_push.yml— Added--method=POSTto the "Trigger Portainer Redeploy (Dev)" step.gitea/workflows/prod_image_tag_promote.yaml— Added--method=POSTto the "Trigger Portainer Redeploy (Prod)" stepTesting
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.Pull request closed