Skip to content

Commit

Permalink
CICD: Depoly docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
insung3511 committed Sep 25, 2023
1 parent 022aa67 commit 6826fc9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,17 @@ jobs:
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/python-ci:latest

-
name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/python-ci:latest
docker run -d -p 5000:5000 ${{ secrets.DOCKERHUB_USERNAME }}/python-ci:latest

0 comments on commit 6826fc9

Please sign in to comment.