From 270f801b605ad7200b2bff4a0221579853d2fe23 Mon Sep 17 00:00:00 2001 From: geezo Date: Fri, 23 May 2025 01:02:30 +0100 Subject: [PATCH] add thunderbird config --- .gitea/workflows/thunderbird.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/thunderbird.yaml diff --git a/.gitea/workflows/thunderbird.yaml b/.gitea/workflows/thunderbird.yaml new file mode 100644 index 0000000..ae8710b --- /dev/null +++ b/.gitea/workflows/thunderbird.yaml @@ -0,0 +1,30 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 + +on: + workflow_dispatch: + push: + paths: + - thunderbird/** + +env: + app_folder: thunderbird + +jobs: + Explore-Gitea-Actions: + runs-on: ubuntu-latest + steps: + - name: Execute remote SSH commands using password + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.HOST }} + username: geezo + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + cd /home/geezo/docker_containers && \ + if ./restart_container.sh ${{ env.app_folder }}; then + ./send_notification.sh -m "Successfully updated ${{ env.app_folder }} container" + else + ./send_notification.sh -m "Failed to update ${{ env.app_folder }} container" + fi \ No newline at end of file