theocorp_docker_compose/.gitea/workflows/thunderbird.yaml
geezo 22f680b7d7
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
memos
2025-06-14 22:11:34 -04:00

30 lines
867 B
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
workflow_dispatch:
push:
paths:
- thunderbird/**
env:
app_folder: thunderbirdls -a
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