Skip to content

Commit

Permalink
fix: docker build tag 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yujamint committed Jun 27, 2024
1 parent 0474bb7 commit 2fcbf1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/qtudy-server:${{ github.sha }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/qtudy-server:latest

- name: EC2 서버에 배포
uses: appleboy/ssh-action@master
Expand All @@ -51,6 +51,6 @@ jobs:
envs: GITHUB_SHA
script: |
sudo docker stop $(sudo docker ps -a -q)
sudo docker pull ${{secrets.DOCKER_USERNAME}}/qtudy-server:${{ github.sha }}
sudo docker pull ${{secrets.DOCKER_USERNAME}}/qtudy-server
sudo docker run -d -p 8080:8080 --name qtudy-server-container ${{secrets.DOCKER_USERNAME}}/qtudy-server
sudo docker image prune -f

0 comments on commit 2fcbf1a

Please sign in to comment.