Skip to content

Commit

Permalink
fix : .yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sycuuui committed Mar 23, 2024
1 parent 2852546 commit c1268db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
script: |
cd /home/ubuntu/server-flask
sudo docker-compose -f /home/ubuntu/server-flask/docker-compose.yml down
sudo docker-compose /home/ubuntu/server-flask/docker-compose.yml up -d
sudo docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
sudo docker-compose stop ${{ secrets.DOCKER_SERVICE_NAME }}
sudo docker-compose rm -f ${{ secrets.DOCKER_SERVICE_NAME }}
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY}}
sudo docker tag ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY}} ${{ secrets.DOCKER_IMAGE_NAME }}
sudo docker-compose up -d
port: 22

0 comments on commit c1268db

Please sign in to comment.