Compare commits

..

5 Commits

Author SHA1 Message Date
8ee2abdbd7 Hithomelabs/CFTunnels#139: Remove portainer-automation service from docker-compose.yaml (now managed independently via portainer-automation/docker-compose.yaml)
All checks were successful
sample gradle build and test / build (pull_request) Successful in 1m58s
Daily cloudflare API integration test / cloudflare-api-test (push) Successful in 1m49s
Promote image with tag test to prod / tag (push) Successful in 6s
Promote image with tag test to prod / build_tag_push (push) Successful in 13s
sample gradle build and test / tag (push) Successful in 7s
sample gradle build and test / build_tag_push (push) Successful in 2m30s
2026-07-09 05:04:48 +00:00
35db41573a Hithomelabs/CFTunnels#139: Simplify workflow_dispatch input type for Gitea compatibility
Some checks failed
sample gradle build and test / build (pull_request) Has been cancelled
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.
2026-07-09 10:32:26 +05:30
bf5c9f1650 Hithomelabs/CFTunnels#145: Replace --method=POST with --post-data= for BusyBox wget compatibility
All checks were successful
sample gradle build and test / build (pull_request) Successful in 1m55s
sample gradle build and test / tag (push) Successful in 7s
sample gradle build and test / build_tag_push (push) Successful in 2m37s
2026-07-08 21:05:48 +00:00
bd2d32fa8c Hithomelabs/CFTunnels#145: Replace --method=POST with --post-data= for BusyBox wget compatibility 2026-07-08 21:05:42 +00:00
a3a3917fc0 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
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.
2026-07-09 02:27:48 +05:30
4 changed files with 4 additions and 17 deletions

View File

@ -9,13 +9,10 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
environment: 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 required: true
default: 'test' default: 'test'
type: choice type: string
options:
- test
- prod
jobs: jobs:
version: version:

View File

@ -63,6 +63,7 @@ jobs:
API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY_PROD }} API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY_PROD }}
run: | run: |
wget -q --no-check-certificate --timeout=30 \ wget -q --no-check-certificate --timeout=30 \
--post-data= \
--header="X-API-Key: $API_KEY" \ --header="X-API-Key: $API_KEY" \
-O - \ -O - \
"$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \ "$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \

View File

@ -72,6 +72,7 @@ jobs:
API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY }} API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY }}
run: | run: |
wget -q --no-check-certificate --timeout=30 \ wget -q --no-check-certificate --timeout=30 \
--post-data= \
--header="X-API-Key: $API_KEY" \ --header="X-API-Key: $API_KEY" \
-O - \ -O - \
"$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \ "$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \

View File

@ -30,15 +30,3 @@ services:
- "${DB_PORT}:5432" - "${DB_PORT}:5432"
volumes: volumes:
- ${DB_PATH}:/var/lib/postgresql/data - ${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