hold on to yo butts
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 8s

This commit is contained in:
ThaMunsta
2025-03-14 15:53:10 -04:00
parent 64c36b0ff2
commit 1402638ca7

View File

@@ -7,15 +7,22 @@ jobs:
runs-on: synology
steps:
- run: docker pull linuxserver/bookstack
- run: docker stack deploy bookstack
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
- name: Fetch stack ID from Portainer
run: |
ls ${{ gitea.workspace }}
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 }}."