rename file, cleanup and create tests!
Some checks failed
Pull Images and Redeploy / Update-and-Redeploy-Stack (push) Failing after 1s
Just test things / Update-and-Redeploy-Stack (push) Successful in 13s

This commit is contained in:
ThaMunsta
2025-03-15 14:49:37 -04:00
parent 92e6015f99
commit bc7de2852d
2 changed files with 21 additions and 3 deletions

View File

@@ -1,13 +1,16 @@
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: Gitea Actions Demo name: Pull Images and Redeploy
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push] on: [push]
jobs: jobs:
Explore-Gitea-Actions: Update-and-Redeploy-Stack:
runs-on: synology runs-on: synology
steps: steps:
- name: Prefetch Docker Image(s)
if: contains(github.event.head_commit.message, 'run_redeploy')
- run: docker pull linuxserver/bookstack #optional? probably faster if done first... - run: docker pull linuxserver/bookstack #optional? probably faster if done first...
- name: Fetch stack ID from Portainer - name: Fetch stack ID from Portainer
if: contains(github.event.head_commit.message, 'run_redeploy') if: contains(github.event.head_commit.message, 'run_redeploy')
env: env:
@@ -66,4 +69,5 @@ jobs:
echo "Redeployed stack in Portainer. Response:" echo "Redeployed stack in Portainer. Response:"
echo $DEPLOY_RESPONSE echo $DEPLOY_RESPONSE
- run: echo "🍏 This job's status is ${{ job.status }}." - name: Status check
- run: echo "📋 This job's status is ${{ job.status }}."

View File

@@ -0,0 +1,14 @@
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: Just test things
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Update-and-Redeploy-Stack:
runs-on: synology
steps:
- name: Test some commands
env:
STACK_NAME: whoami
run: |
ls -la