Skip to content

Commit

Permalink
chore: ci.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sejineer committed May 27, 2024
1 parent 64893dd commit d0b2dd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
port: 22
key: ${{ secrets.PRIVATE_KEY }}
script: |
sudo docker rm -f $(sudo docker ps -qa)
CONTAINER_IDS=$(sudo docker ps -qa)
if [ ! -z "$CONTAINER_IDS" ]; then
sudo docker rm -f $CONTAINER_IDS
fi
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO_PROD }}
sudo docker run -dp 80:8080 ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO_PROD }}

0 comments on commit d0b2dd3

Please sign in to comment.