Files
spotizarr/.gitea/workflows/spotizarr_deploy.yaml
T
json 98e217eb73
Remote SSH Deployment / deploy_to_ubuntu (push) Failing after 58s
yet more gitea
2026-06-18 12:10:25 +00:00

48 lines
1.2 KiB
YAML

name: Remote SSH Deployment
on:
push:
branches:
- main
jobs:
deploy_to_ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Execute remote SSH commands
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
port: 22
script: |
cd /containers/servarr/spotizarr
git pull origin main
docker compose down && docker compose up -d
# name: Remote Server Deploy
# on: [push]
# jobs:
# run-remote-command:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Setup SSH
# run: |
# mkdir -p ~/.ssh
# echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
# chmod 600 ~/.ssh/cat ~/.ssh/id_ed25519.pub
# ssh-keyscan -H ${{ secrets.REMOTE_HOST }} >> ~/.ssh/known_hosts
# - name: Execute Remote Command
# run: |
# ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }} "cd /containers/servarr/spotizarr && git pull && docker compose up -d"