Skip to content

Commit

Permalink
Merge pull request #54 from dajeongdev/feature/github-actions
Browse files Browse the repository at this point in the history
chore : tag_name 수정 및 컨테이너 포트 수정
  • Loading branch information
dajeongdev committed Apr 5, 2024
2 parents 0773358 + 878329b commit 7cd7a29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.NCP_CONTAINER_REGISTRY }}/tag-name:latest
cache-from: type=registry,ref=${{ secrets.NCP_CONTAINER_REGISTRY }}/tag-name:latest
tags: ${{ secrets.NCP_CONTAINER_REGISTRY }}/americanote:0.0.1
cache-from: type=registry,ref=${{ secrets.NCP_CONTAINER_REGISTRY }}/americanote:0.0.1
cache-to: type=inline


Expand All @@ -75,8 +75,8 @@ jobs:
password: ${{ secrets.NCP_PASSWORD }}
port: ${{ secrets.NCP_PORT }}
script: |
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/tag-name
docker pull ${{ secrets.NCP_CONTAINER_REGISTRY }}/americanote
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker run -d -p 8009:80 ${{ secrets.NCP_CONTAINER_REGISTRY }}/tag-name
docker run -d -p 8009:8009 ${{ secrets.NCP_CONTAINER_REGISTRY }}/americanote
docker image prune -f

0 comments on commit 7cd7a29

Please sign in to comment.