Files
runner-test/.gitea/workflows/demo.yaml
ThaMunsta 1402638ca7
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s
hold on to yo butts
2025-03-14 15:53:10 -04:00

28 lines
1.1 KiB
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: synology
steps:
- run: docker pull linuxserver/bookstack
- name: Fetch stack ID from Portainer
run: |
STACK_NAME="bookstack"
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
PORTAINER_TOKEN="ptr_WnwQZKLIEcYMc4see6SyBgiSL7dzpnzCyi4CTCP"
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
- name: Trigger stack update in Portainer
run: |
PORTAINER_API_URL="https://portainer.dev.nervesocket.com/api"
PORTAINER_TOKEN="ptr_WnwQZKLIEcYMc4see6SyBgiSL7dzpnzCyi4CTCP"
curl -X POST "$PORTAINER_API_URL/stacks/$STACK_ID/redeploy" \
-H "X-API-Key: $PORTAINER_TOKEN" \
-H "Content-Type: application/json" \
--data '{"pullImage": true}'
- run: echo "🍏 This job's status is ${{ job.status }}."