Skip to content

Commit

Permalink
Merge pull request #133 from MYONGSIK/infra/monitoring
Browse files Browse the repository at this point in the history
refactor: prod2 ์‚ญ์ œ
  • Loading branch information
Qbeom0925 authored Aug 19, 2023
2 parents c08013f + 8f41ec6 commit 778b8b7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/CD_Prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,3 @@ jobs:
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/myongsik
sudo docker run -d --name myongsik_prod1 -v /var/log/app:/var/log/app -v /etc/localtime:/etc/localtime:ro -e JAVA_OPTS=-Djasypt.encryptor.password=${{ secrets.YML_PASSWORD }} -e TZ=Asia/Seoul -e ENVIRONMENT_VALUE=-Dspring.profiles.active=prod -p 8085:8080 ${{ secrets.DOCKER_USERNAME }}/myongsik:latest
docker rmi -f $(docker images -f "dangling=true" -q)
# 10) Deploy (PROD2)
- name: Deploy (PROD2)
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST_PROD2 }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_KEY }}
script: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker stop myongsik_prod2
docker rm myongsik_prod2
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/myongsik
sudo docker run -d --name myongsik_prod2 -v /var/log/app:/var/log/app -v /etc/localtime:/etc/localtime:ro -e JAVA_OPTS=-Djasypt.encryptor.password=${{ secrets.YML_PASSWORD }} -e TZ=Asia/Seoul -e ENVIRONMENT_VALUE=-Dspring.profiles.active=prod -p 8085:8080 ${{ secrets.DOCKER_USERNAME }}/myongsik:latest
docker rmi -f $(docker images -f "dangling=true" -q)

0 comments on commit 778b8b7

Please sign in to comment.