Skip to content

Commit e31460a

Browse files
committed
fix: checking rsync version
1 parent 6267166 commit e31460a

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/deploy-to-vps.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,8 @@ jobs:
1717
- name: setup for docker building tools
1818
uses: docker/setup-buildx-action@v3
1919

20-
- name: uploading all repo
21-
uses: trendyminds/github-actions-rsync@master
22-
with:
23-
RSYNC_OPTIONS: -avzr --delete --exclude node_modules --exclude '.git*'
24-
RSYNC_TARGET: /home/ec2-user/
25-
RSYNC_SOURCE: ./
26-
env:
27-
SSH_PRIVATE_KEY: ${{secrets.VPS_SSH_KEY}}
28-
SSH_USERNAME: ${{secrets.VPS_USER}}
29-
SSH_HOSTNAME: ${{secrets.VPS_HOST}}
20+
- name: Deploy with rsync
21+
run: rsync -V
3022

3123
- name: install utilities
3224
run: |
@@ -49,3 +41,13 @@ jobs:
4941
run: |
5042
mkdir images
5143
docker save milk-folio_backend:latest milk-folio_webview:latest > ./images/images.tar
44+
45+
# this for the deployment of the images
46+
- name: Install SSH Key
47+
uses: shimataro/ssh-key-action@v2
48+
with:
49+
key: ${{ secrets.VPS_SSH_KEY }}
50+
51+
- name: Adding Known Hosts
52+
run: ssh-keyscan -H ${{ secrets.VPS_HOST }} >> ~/.ssh/known_hosts
53+

0 commit comments

Comments
 (0)