Files
Jarvis/.gitea/workflows/deploy.sh
MrZaiko 8910dfa4c0
Some checks failed
Build and Deploy / build (push) Failing after 2m1s
Update workflow
2025-04-08 11:45:04 +02:00

15 lines
355 B
Bash

#!/usr/bin/env sh
#!/bin/bash
# Config
PORTAINER_URL="http://192.168.1.17:9000"
API_KEY="${PORTAINER_API_KEY}" # store this securely!
STACK_ID=27 # local_stuff stack
# Redeploy Stack
curl -s -X POST "$PORTAINER_URL/api/stacks/$STACK_ID/redeploy" \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{}'