diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/redeploy.yaml similarity index 91% rename from .gitea/workflows/demo.yaml rename to .gitea/workflows/redeploy.yaml index ca9acb5..1c99355 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/redeploy.yaml @@ -1,13 +1,16 @@ # 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 🚀 on: [push] jobs: - Explore-Gitea-Actions: + Update-and-Redeploy-Stack: runs-on: synology 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... + - name: Fetch stack ID from Portainer if: contains(github.event.head_commit.message, 'run_redeploy') env: @@ -66,4 +69,5 @@ jobs: echo "Redeployed stack in Portainer. Response:" echo $DEPLOY_RESPONSE - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + - name: Status check + - run: echo "📋 This job's status is ${{ job.status }}." \ No newline at end of file diff --git a/.gitea/workflows/tests.yaml b/.gitea/workflows/tests.yaml new file mode 100644 index 0000000..c04ebbf --- /dev/null +++ b/.gitea/workflows/tests.yaml @@ -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