probably dont put keys in repos eh
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s

This commit is contained in:
ThaMunsta
2025-03-14 15:59:52 -04:00
parent 1402638ca7
commit a814f60d17

View File

@@ -1,3 +1,4 @@
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
@@ -11,7 +12,7 @@ jobs:
run: |
STACK_NAME="bookstack"
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
PORTAINER_TOKEN="ptr_WnwQZKLIEcYMc4see6SyBgiSL7dzpnzCyi4CTCP"
PORTAINER_TOKEN="ptr_QkR9kDZuoC1QOwp+axwJPkK5av4NlmyjihS3JmTdPww="
STACK_ID=$(curl -s -H "X-API-Key: $PORTAINER_TOKEN" "$PORTAINER_API_URL/stacks" | jq -r ".[] | select(.Name==\"$STACK_NAME\") | .Id")
echo "STACK_ID=$STACK_ID" >> $GITHUB_ENV
@@ -19,7 +20,7 @@ jobs:
- name: Trigger stack update in Portainer
run: |
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
PORTAINER_TOKEN="ptr_WnwQZKLIEcYMc4see6SyBgiSL7dzpnzCyi4CTCP"
PORTAINER_TOKEN="ptr_QkR9kDZuoC1QOwp+axwJPkK5av4NlmyjihS3JmTdPww="
curl -X POST "$PORTAINER_API_URL/stacks/$STACK_ID/redeploy" \
-H "X-API-Key: $PORTAINER_TOKEN" \