Hithomelabs/CFTunnels#91: Wire CI deploy triggers for Portainer auto-redeploy
Some checks failed
sample gradle build and test / build (pull_request) Has been cancelled
Some checks failed
sample gradle build and test / build (pull_request) Has been cancelled
This commit is contained in:
parent
da2db99755
commit
8e02a9fcd0
@ -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"
|
||||||
|
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)"
|
||||||
|
|||||||
@ -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"
|
||||||
|
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)"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user