rename file, cleanup and create tests!
This commit is contained in:
@@ -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 }}."
|
||||||
14
.gitea/workflows/tests.yaml
Normal file
14
.gitea/workflows/tests.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user