From 7cc32b0ca0f488bb4063444f77bb125245ea6423 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 13 Feb 2024 10:55:45 -0800 Subject: [PATCH] Init new deploy job for fighter --- .gitea/workflows/deploy-fighter.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitea/workflows/deploy-fighter.yml diff --git a/.gitea/workflows/deploy-fighter.yml b/.gitea/workflows/deploy-fighter.yml new file mode 100644 index 0000000..f6e6083 --- /dev/null +++ b/.gitea/workflows/deploy-fighter.yml @@ -0,0 +1,19 @@ +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: ${{ gitea.SSH_HOST_IP_FIGHTER }} # this is a LAN IP + username: ${{ gitea.SSH_USERNAME_FIGHTER }} + key: ${{ gitea.SSH_KEY_DEPLOY_TO_FIGHTER }} + port: 22 + script: | + cd ~/homelab + git pull + echo "hello world" > ~/text.txt