-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push image to server docker-image.yml
- Loading branch information
1 parent
44031ba
commit a1f9929
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |