[ISSUE-91] Wire CI deploy triggers for Portainer auto-redeploy #136

Merged
hitanshu merged 3 commits from Dave/CFTunnels:ISSUE-91 into test 2026-07-08 20:32:34 +00:00
2 changed files with 24 additions and 0 deletions
Showing only changes of commit 8e02a9fcd0 - Show all commits

View File

@ -55,3 +55,15 @@ jobs:
run: | run: |
docker push 192.168.0.100:8928/hithomelabs/cftunnels:prod docker push 192.168.0.100:8928/hithomelabs/cftunnels:prod
docker push 192.168.0.100:8928/hithomelabs/cftunnels:${{ needs.tag.outputs.new_version }} docker push 192.168.0.100:8928/hithomelabs/cftunnels:${{ needs.tag.outputs.new_version }}
- name: Trigger Portainer Redeploy (Prod)
if: success()
env:
PORTAINER_AUTOMATION_URL: "http://portainer-automation-prod:8082"

I think it won't work unless we use the IP address, 192.168.0.100

I think it won't work unless we use the IP address, 192.168.0.100
STACK_ID: ${{ vars.CFTUNNELS_PROD_STACK_ID }}
API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY_PROD }}
run: |
wget -q --no-check-certificate --timeout=30 \
--header="X-API-Key: $API_KEY" \
-O - \
"$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \
|| echo "Deploy trigger failed (non-fatal)"

View File

@ -64,3 +64,15 @@ jobs:
run: | run: |
docker push 192.168.0.100:8928/hithomelabs/cftunnels:test docker push 192.168.0.100:8928/hithomelabs/cftunnels:test
docker push 192.168.0.100:8928/hithomelabs/cftunnels:${{ needs.tag.outputs.new_version }} docker push 192.168.0.100:8928/hithomelabs/cftunnels:${{ needs.tag.outputs.new_version }}
- name: Trigger Portainer Redeploy (Dev)
if: success()
env:
PORTAINER_AUTOMATION_URL: "http://portainer-automation-dev:8081"

I think it won't work unless we use the IP address, 192.168.0.100

I think it won't work unless we use the IP address, 192.168.0.100
STACK_ID: ${{ vars.CFTUNNELS_DEV_STACK_ID }}
API_KEY: ${{ secrets.PORTAINER_SERVICE_API_KEY }}
run: |
wget -q --no-check-certificate --timeout=30 \
--header="X-API-Key: $API_KEY" \
-O - \
"$PORTAINER_AUTOMATION_URL/api/deploy/$STACK_ID" 2>&1 \
|| echo "Deploy trigger failed (non-fatal)"