Skip to content

Commit

Permalink
Docs: work.yml 수정
Browse files Browse the repository at this point in the history
- docker build 명령어 수정
  • Loading branch information
don9m1n committed Mar 22, 2024
1 parent 64c38bf commit d488382
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/work.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
- name: 도커 이미지 빌드 및 푸시
run: |
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
docker build -t ${{ secrets.DOCKER_REPO }} .
docker push ${{ secrets.DOCKER_REPO }}
docker build -t ${{ secrets.DOCKER_REPO }}/readinglog .
docker push ${{ secrets.DOCKER_REPO }}/readinglog
deploy:
name: 원격 서버에 배포
runs-on: ubuntu-latest
Expand All @@ -67,6 +67,6 @@ jobs:
port: ${{ secrets.SSH_PORT }}
script: |
sudo docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
sudo docker pull ${{ secrets.DOCKER_REPO }}
sudo docker pull ${{ secrets.DOCKER_REPO }}/readinglog
sudo docker run --name=readinglog_app --restart unless-stopped \
-p 8080:8080 -e TZ=Asia/Seoul -d ${{ secrets.DOCKER_REPO }}
-p 8080:8080 -e TZ=Asia/Seoul -d ${{ secrets.DOCKER_REPO }}/readinglog

0 comments on commit d488382

Please sign in to comment.