Skip to content

Merge pull request #114 from crab85193/dependabot/pip/django-4.2.15 #54

Merge pull request #114 from crab85193/dependabot/pip/django-4.2.15

Merge pull request #114 from crab85193/dependabot/pip/django-4.2.15 #54

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
name: id_github_actions_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: ${{ secrets.SSH_CONFIG }}
- name: Check out code
uses: actions/checkout@v2
- name: Deploy with rsync
run: |
ls -a
ssh ${{ secrets.SSH_HOST }} 'cd /home/$USER/tely; docker-compose -f docker-compose.prod.yml down; docker system prune -a -f; docker volume prune -a -f'
rsync -auvPz ./ ${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/tely/
ssh ${{ secrets.SSH_HOST }} 'cd /home/$USER/tely; docker-compose -f docker-compose.prod.yml up -d --build'