Skip to content

Commit

Permalink
fix: cicd 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SunYerim committed Jul 5, 2024
1 parent 85f69b5 commit 88f795b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:

- name: Build and push Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/sentimentanalysis:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/sentimentanalysis:latest
docker build -t ${{ secrets.DOCKER_USERNAME }}/analysis:latest .
docker push ${{ secrets.DOCKER_USERNAME }}/analysis:latest
- name: SSH and Deploy
uses: appleboy/ssh-action@v0.1.5
Expand All @@ -54,8 +54,8 @@ jobs:
script: |
cd /home/ubuntu/sunjoo-server-sentimentAnalysis
docker-compose down
docker pull ${{ secrets.DOCKER_USERNAME }}/sentimentanalysis:latest
docker pull ${{ secrets.DOCKER_USERNAME }}/analysis:latest
docker-compose build
docker-compose up -d
docker network connect eureka-network sunjoo-server-sentimentanalysis_sentimentanalysis_1
docker restart sunjoo-server-sentimentanalysis_sentimentanalysis_1
docker network connect eureka-network sunjoo-server-sunjoo-server-sentimentanalysis_sentimentAnalysis_1
docker restart sunjoo-server-sentimentanalysis_sentimentAnalysis_1

0 comments on commit 88f795b

Please sign in to comment.