From 65e74730adaad9928caae30f74e8f72720671512 Mon Sep 17 00:00:00 2001 From: Gaxinto Theodorio Date: Tue, 6 May 2025 22:54:53 -0400 Subject: [PATCH] feat: add ntfy service and workflow --- .gitea/workflows/ntfy.yaml | 25 +++++++++++++++++++++++++ ntfy/docker_compose.yml | 15 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .gitea/workflows/ntfy.yaml create mode 100644 ntfy/docker_compose.yml diff --git a/.gitea/workflows/ntfy.yaml b/.gitea/workflows/ntfy.yaml new file mode 100644 index 0000000..e672077 --- /dev/null +++ b/.gitea/workflows/ntfy.yaml @@ -0,0 +1,25 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 + +on: + push: + paths: + - ntfy/** + +env: + app_folder: ntfy + +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 && \ + ./restart_container.sh ${{ env.app_folder }} \ No newline at end of file diff --git a/ntfy/docker_compose.yml b/ntfy/docker_compose.yml new file mode 100644 index 0000000..bd0ce5b --- /dev/null +++ b/ntfy/docker_compose.yml @@ -0,0 +1,15 @@ +services: + ntfy: + image: binwiederhier/ntfy + container_name: ntfy + command: + - serve + environment: + - TZ=UTC # optional: Change to your desired timezone + user: UID:GID # optional: Set custom user/group or uid/gid + volumes: + - /var/cache/ntfy:/var/cache/ntfy + - /etc/ntfy:/etc/ntfy + ports: + - 1028:80 + restart: unless-stopped