homelab/.gitea/workflows/deploy-fighter.yml
Joey Hafner 17d43a55dd
Some checks failed
Deploy to Fighter / Deploy-to-Fighter (push) Failing after 2s
Someone write some documentation for Gitea actions.
2024-02-13 10:59:14 -08:00

19 lines
528 B
YAML

name: Deploy to Fighter
run-name: ${{ gitea.actor }} deploying
on: [push]
jobs:
Deploy-to-Fighter:
runs-on: internal
steps:
- name: Pull latest code onto Fighter via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ vars.SSH_HOST_IP_FIGHTER }} # this is a LAN IP
username: ${{ vars.SSH_USERNAME_FIGHTER }}
key: ${{ secrets.SSH_KEY_DEPLOY_TO_FIGHTER }}
script: |
cd ~/homelab
git pull
echo "hello world" > ~/text.txt