Skip to content

Commit

Permalink
fix: docker 명령어에 registry 값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomo committed Nov 27, 2023
1 parent 2ea5469 commit 51d1afb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/develop_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ jobs:
script: |
echo "${{ secrets.NCP_SECRET_KEY }}" | docker login -u "${{ secrets.NCP_ACCESS_KEY }}" --password-stdin "${{ secrets.NCP_CONTAINER_REGISTRY }}"
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ needs.build.outputs.sha }}
docker stop server-spring
docker run -d --name server-spring -p 8080:8080 -d server-spring:${{ needs.build.outputs.sha }}
docker stop ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring && docker rm ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring
docker run -d --name server-spring -p 8080:8080 -d ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ needs.build.outputs.sha }}
4 changes: 2 additions & 2 deletions .github/workflows/develop_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
script: |
echo "${{ secrets.NCP_SECRET_KEY }}" | docker login -u "${{ secrets.NCP_ACCESS_KEY }}" --password-stdin "${{ secrets.NCP_CONTAINER_REGISTRY }}"
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ github.event.inputs.commit_hash }}
docker stop server-spring
docker run -d --name server-spring -p 8080:8080 -d server-spring:${{ github.event.inputs.commit_hash }}
docker stop ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring && docker rm ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring
docker run -d --name server-spring -p 8080:8080 -d ${{ secrets.NCP_CONTAINER_REGISTRY }}/server-spring:${{ github.event.inputs.commit_hash }}

0 comments on commit 51d1afb

Please sign in to comment.