add thunderbird config
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
This commit is contained in:
parent
d9eae22bab
commit
270f801b60
30
.gitea/workflows/thunderbird.yaml
Normal file
30
.gitea/workflows/thunderbird.yaml
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user