Files
parsaaghayi-backend/.gitea/workflows/deploy.yml
T
devops f0a6a9e20a
Deploy Backend / deploy (push) Failing after 2m2s
fix deploy: use sh shell (alpine has no bash)
2026-06-23 11:20:40 +00:00

25 lines
618 B
YAML

name: Deploy Backend
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: sh
steps:
- name: Install SSH client
run: apk add --no-cache openssh-client
- name: Setup SSH key
env:
SSH_KEY: ${{ secrets.DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 2234 -H 172.17.0.1 >> ~/.ssh/known_hosts
- name: Deploy
run: ssh -p 2234 devops@172.17.0.1 'bash /opt/services/parsa/backend/deploy.sh'