Skip to content

Commit

Permalink
check ssh connection docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kirmorozov authored Apr 1, 2024
1 parent a1f9929 commit a5d4024
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ jobs:
- name: Tar the image
run: docker save the-smile:latest | gzip > smile_latest.tar.gz

- name: copy file via ssh key
uses: appleboy/[email protected]
with:
- name: copy image to server
run: ssh -i <(echo $key) $user@$host ls -la
env:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
port: 22
user: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
source: "smile_latest.tar.gz"
target: /srv/smile/smile_latest.tar.gz
# - name: copy file via ssh key
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USER }}
# port: 22
# key: ${{ secrets.SSH_KEY }}
# source: "smile_latest.tar.gz"
# target: /srv/smile/smile_latest.tar.gz

0 comments on commit a5d4024

Please sign in to comment.