From a3a3917fc0d46b7943f706dd48cdd99131b00984 Mon Sep 17 00:00:00 2001 From: hitanshu310 Date: Thu, 9 Jul 2026 02:27:48 +0530 Subject: [PATCH 1/5] Hithomelabs/CFTunnels#: 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. --- .gitea/workflows/prod_image_tag_promote.yaml | 1 + .gitea/workflows/test_image_build_push.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitea/workflows/prod_image_tag_promote.yaml b/.gitea/workflows/prod_image_tag_promote.yaml index bfec6c3..7c3d8a0 100644 --- a/.gitea/workflows/prod_image_tag_promote.yaml +++ b/.gitea/workflows/prod_image_tag_promote.yaml @@ -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 \ diff --git a/.gitea/workflows/test_image_build_push.yml b/.gitea/workflows/test_image_build_push.yml index 5896049..34d1fb5 100644 --- a/.gitea/workflows/test_image_build_push.yml +++ b/.gitea/workflows/test_image_build_push.yml @@ -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 \ -- 2.45.2 From bd2d32fa8cc851aa352c75d29f90e0edcca05280 Mon Sep 17 00:00:00 2001 From: Dave the Dev Date: Wed, 8 Jul 2026 21:05:42 +0000 Subject: [PATCH 2/5] Hithomelabs/CFTunnels#145: Replace --method=POST with --post-data= for BusyBox wget compatibility --- .gitea/workflows/test_image_build_push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/test_image_build_push.yml b/.gitea/workflows/test_image_build_push.yml index 34d1fb5..7d22be9 100644 --- a/.gitea/workflows/test_image_build_push.yml +++ b/.gitea/workflows/test_image_build_push.yml @@ -72,7 +72,7 @@ jobs: API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY }} run: | wget -q --no-check-certificate --timeout=30 \ - --method=POST \ + --post-data= \ --header="X-API-Key: $API_KEY" \ -O - \ "$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \ -- 2.45.2 From bf5c9f1650f0d1bbc9b2a4ac367aa216b116c768 Mon Sep 17 00:00:00 2001 From: Dave the Dev Date: Wed, 8 Jul 2026 21:05:48 +0000 Subject: [PATCH 3/5] Hithomelabs/CFTunnels#145: Replace --method=POST with --post-data= for BusyBox wget compatibility --- .gitea/workflows/prod_image_tag_promote.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/prod_image_tag_promote.yaml b/.gitea/workflows/prod_image_tag_promote.yaml index 7c3d8a0..25cf4cf 100644 --- a/.gitea/workflows/prod_image_tag_promote.yaml +++ b/.gitea/workflows/prod_image_tag_promote.yaml @@ -63,7 +63,7 @@ jobs: API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY_PROD }} run: | wget -q --no-check-certificate --timeout=30 \ - --method=POST \ + --post-data= \ --header="X-API-Key: $API_KEY" \ -O - \ "$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \ -- 2.45.2 From 35db41573a8f88624f2a7f75a4b7b44ab38d1370 Mon Sep 17 00:00:00 2001 From: hitanshu310 Date: Thu, 9 Jul 2026 10:32:26 +0530 Subject: [PATCH 4/5] Hithomelabs/CFTunnels#139: Simplify workflow_dispatch input type for Gitea compatibility Remove 'type: choice' and 'options:' from workflow_dispatch inputs, replacing with 'type: string'. The Gitea Actions runner may not support the 'choice' type with 'options' subfield, causing the entire workflow to fail registration silently. The workflow already has runtime validation (lines 40-44) that rejects invalid environment values, so the 'choice' type was redundant. --- .gitea/workflows/portainer_automation_build_push.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/portainer_automation_build_push.yml b/.gitea/workflows/portainer_automation_build_push.yml index 8ce4c0f..0888e23 100644 --- a/.gitea/workflows/portainer_automation_build_push.yml +++ b/.gitea/workflows/portainer_automation_build_push.yml @@ -9,13 +9,10 @@ on: workflow_dispatch: inputs: environment: - description: 'Target environment (test → PATCH bump, prod → MINOR bump)' + description: 'Target environment: "test" (PATCH bump) or "prod" (MINOR bump). Invalid values fail early with validation error.' required: true default: 'test' - type: choice - options: - - test - - prod + type: string jobs: version: -- 2.45.2 From 8ee2abdbd7a2c17118a6cbb34297110427e9833b Mon Sep 17 00:00:00 2001 From: Dave the Dev Date: Thu, 9 Jul 2026 05:04:48 +0000 Subject: [PATCH 5/5] Hithomelabs/CFTunnels#139: Remove portainer-automation service from docker-compose.yaml (now managed independently via portainer-automation/docker-compose.yaml) --- docker-compose.yaml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 07f9090..41ddd87 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -30,15 +30,3 @@ services: - "${DB_PORT}:5432" volumes: - ${DB_PATH}:/var/lib/postgresql/data - portainer-automation: - image: gitea.hithomelabs.com/hithomelabs/portainer-automation:${ENV} - container_name: portainer-automation_${ENV} - ports: - - "${PORTAINER_AUTOMATION_PORT:-8081}:8081" - environment: - - SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE:-local} - - PORTAINER_API_KEY=${PORTAINER_API_KEY} - - PORTAINER_SERVICE_API_KEY=${PORTAINER_SERVICE_API_KEY} - env_file: - - stack.env - restart: unless-stopped \ No newline at end of file -- 2.45.2