[FIX] Add --method=POST to wget in Portainer Redeploy triggers #145

Merged
hitanshu merged 1 commits from Dave/CFTunnels:fix/wget-method-post into test 2026-07-08 21:00:51 +00:00
Member

Summary

The Portainer redeploy endpoint POST /api/deploy/{stackId} requires POST requests, but wget defaults to GET. This fix adds --method=POST to both workflow files.

Changes

  • .gitea/workflows/test_image_build_push.yml — Added --method=POST to the "Trigger Portainer Redeploy (Dev)" step
  • .gitea/workflows/prod_image_tag_promote.yaml — Added --method=POST to the "Trigger Portainer Redeploy (Prod)" step

Testing

  • CI passes
  • Manual verification of redeploy trigger
## Summary The Portainer redeploy endpoint `POST /api/deploy/{stackId}` requires POST requests, but `wget` defaults to GET. This fix adds `--method=POST` to both workflow files. ## Changes - **`.gitea/workflows/test_image_build_push.yml`** — Added `--method=POST` to the "Trigger Portainer Redeploy (Dev)" step - **`.gitea/workflows/prod_image_tag_promote.yaml`** — Added `--method=POST` to the "Trigger Portainer Redeploy (Prod)" step ## Testing - [x] CI passes - [ ] Manual verification of redeploy trigger
Dave added 1 commit 2026-07-08 20:58:10 +00:00
Hithomelabs/CFTunnels#<issue>: Add --method=POST to wget deploy trigger commands
All checks were successful
sample gradle build and test / build (pull_request) Successful in 2m1s
sample gradle build and test / tag (push) Successful in 6s
sample gradle build and test / build_tag_push (push) Successful in 2m20s
a3a3917fc0
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.
hitanshu requested review from hitanshu 2026-07-08 20:59:29 +00:00
hitanshu merged commit a3a3917fc0 into test 2026-07-08 21:00:51 +00:00
Author
Member

Created new PR with the BusyBox wget fix using --post-data= instead of --method=POST:

PR #146: #146

Created new PR with the BusyBox wget fix using `--post-data=` instead of `--method=POST`: **PR #146**: https://gitea.hithomelabs.com/Hithomelabs/CFTunnels/pulls/146
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hithomelabs/CFTunnels#145
No description provided.