Skip to content

Commit

Permalink
Push image to server docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kirmorozov authored Apr 1, 2024
1 parent 44031ba commit a1f9929
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,15 @@ jobs:
- name: Build the Docker image
run: docker build . --file build/Dockerfile --tag the-smile:$(date +%Y%m%d-%s) --tag the-smile:latest

- name: Check BlazeFace
run: ls -la model/blazeface
- 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:
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 a1f9929

Please sign in to comment.