feat: add ntfy service and workflow
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4s
This commit is contained in:
parent
df5a10e128
commit
65e74730ad
25
.gitea/workflows/ntfy.yaml
Normal file
25
.gitea/workflows/ntfy.yaml
Normal 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
15
ntfy/docker_compose.yml
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user