Skip to content

Commit

Permalink
chore: cd 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
somin-jeong committed Nov 25, 2024
1 parent f2ed986 commit 3f7ad38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ jobs:
port: ${{ secrets.WAS_PORT }}
key: ${{ secrets.WAS_KEY }}
script: |
cd /var/www
sudo docker ps
sudo docker rm -f $(sudo docker ps -qa)
sudo docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO_NAME }}:latest
echo "${{ secrets.ENV_VARS }}" > /var/www/InNOut-Backend/.env
echo "${{ secrets.ENV_VARS }}" > /InNOut-Backend/.env
sudo docker run -d -p 9000:9000 ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO_NAME }}:latest
sudo docker image prune -f
Expand Down

0 comments on commit 3f7ad38

Please sign in to comment.