Skip to content

Commit

Permalink
Merge pull request #280 from Gongjakso/chore/depoly
Browse files Browse the repository at this point in the history
chore : depoly.sh 도입
  • Loading branch information
sycuuui authored Oct 5, 2024
2 parents a1361f0 + d0858c8 commit 1a0b274
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
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
cd ~
sudo chmod +x depoly.sh
./depoly.sh
# 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

0 comments on commit 1a0b274

Please sign in to comment.