Skip to content

Commit

Permalink
feat : Update be-autodeploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GeunH authored Jan 28, 2024
1 parent 23a213d commit 4bd97de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/be-autodeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ jobs:
- name: connect ssh to Nginx server
run: |
ssh -T -i ssh_key.pem ${{ secrets.DEV_USERNAME }}@${{ secrets.DEV_HOST }}
ssh -i ssh_key.pem ${{ secrets.DEV_USERNAME }}@${{ secrets.DEV_HOST }} <<- 'EOSSH'
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/nibobnebob
docker stop my_was_container
docker rm my_was_container
docker run -d -p 8000:8000 -e API_KEY=${{ secrets.DEV_APIKEY }} --name my_was_container --network mynetwork ${{ secrets.NCP_CONTAINER_REGISTRY }}/nibobnebob
docker image prune -f
EOSSH

0 comments on commit 4bd97de

Please sign in to comment.