feat: add ntfy service and workflow
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s

This commit is contained in:
Gaxinto Theodorio 2025-05-06 22:54:53 -04:00
parent df5a10e128
commit 65e74730ad
2 changed files with 40 additions and 0 deletions

View File

@ -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 }}

15
ntfy/docker_compose.yml Normal file
View File

@ -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