deploy: fix copy docker-compose.yml to VPS
This commit is contained in:
parent
a22d2ff773
commit
879dcc2d62
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
@ -36,9 +36,15 @@ jobs:
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H ${{ secrets.VPS_HOST }} >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Copy docker-compose.yml to VPS
|
||||
run: |
|
||||
scp docker-compose.yml ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}:/home/${{ secrets.VPS_USER }}/zapishis-strapi/docker-compose.yml
|
||||
- name: Copy docker-compose.yml to VPS via SCP
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ secrets.VPS_HOST }}
|
||||
username: ${{ secrets.VPS_USER }}
|
||||
key: ${{ secrets.VPS_SSH_KEY }}
|
||||
port: 22
|
||||
source: 'docker-compose.yml'
|
||||
target: '/home/${{ secrets.VPS_USER }}/zapishis-strapi/'
|
||||
|
||||
- name: Login and deploy on VPS
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user