Skip to content

Commit a3f5571

Browse files
committed
fix: use proper TLS for Portainer deploys instead of -sk
Switch from -sk (skip cert verification) to -sf (fail on HTTP errors) now that PORTAINER_URL secrets use Tailscale MagicDNS hostnames with valid Let's Encrypt certificates.
1 parent c8563e4 commit a3f5571

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy-development.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
cd /tmp && rm -rf geiserback-deploy
6868
6969
# Trigger Portainer redeploy
70-
curl -sk -X PUT \
70+
curl -sf -X PUT \
7171
"${{ secrets.PORTAINER_URL_DEV }}/api/stacks/${{ secrets.PORTAINER_STACK_ID_DEV }}/git/redeploy?endpointId=${{ secrets.PORTAINER_ENDPOINT_ID_DEV }}" \
7272
-H "X-API-Key: ${{ secrets.PORTAINER_API_KEY_DEV }}" \
7373
-H "Content-Type: application/json" \

.github/workflows/deploy-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
7373
- name: Trigger Portainer deployment
7474
run: |
75-
curl -sk -X PUT \
75+
curl -sf -X PUT \
7676
"${{ secrets.PORTAINER_URL }}/api/stacks/${{ secrets.PORTAINER_STACK_ID }}/git/redeploy?endpointId=${{ secrets.PORTAINER_ENDPOINT_ID }}" \
7777
-H "X-API-Key: ${{ secrets.PORTAINER_API_KEY }}" \
7878
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)