Skip to content

ci: deploy to linode #4

ci: deploy to linode

ci: deploy to linode #4

Workflow file for this run

name: Deploy to Linode via SSH
on:
push:
branches:
- main # Change to your main branch name
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: 'recursive' # Clone submodules
- name: Set up SSH
uses: webfactory/ssh-agent
uses: webfactory/[email protected]

Check failure on line 20 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to Linode via SSH

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 20, Col: 9): 'uses' is already defined
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Copy files to Linode
run: |
scp -r ./* ${{ secrets.USER }}@${{ secrets.LINODE_IP }}:${{ secrets.PATH_TO_SAVE }}
ssh ${{ secrets.USER }}@${{ secrets.LINODE_IP }} 'cd /home/ferran/refuapp && docker-compose pull && docker-compose up -d'