Skip to content

Commit

Permalink
feat: ncp deploy init2
Browse files Browse the repository at this point in the history
(#51)
  • Loading branch information
yanggwangseong committed Nov 30, 2024
1 parent f97117a commit 1ef142c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
password: ${{ secrets.DEV_PASSWORD }}
port: ${{ secrets.DEV_PORT }}
script: |
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/backend
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/backend:latest
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker run -d -p 3000:80 \
Expand All @@ -56,6 +56,5 @@ jobs:
-e DB_DATABASE='${{ secrets.DB_DATABASE }}' \
-e JWT_SECRET_KEY='${{ secrets.JWT_SECRET_KEY }}' \
-e API_BASE_URL='${{ secrets.API_BASE_URL }}' \
${{ secrets.NCP_CONTAINER_REGISTRY }}/backend
${{ secrets.NCP_CONTAINER_REGISTRY }}/backend:latest
docker image prune -f

0 comments on commit 1ef142c

Please sign in to comment.