Skip to content

Commit

Permalink
refactor: cd yml μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsongmok committed Oct 23, 2024
1 parent 8fb5480 commit 7dadd3f
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,17 @@ jobs:
username: ubuntu
key: ${{ secrets.EC2_SSH_KEY }}
script: |
sudo docker pull kimsongmok/splanet:${{ env.IMAGE_TAG }} # μƒˆ 이미지 풀링
sudo docker stop splanet || true # κΈ°μ‘΄ μ»¨ν…Œμ΄λ„ˆ 쀑지
sudo docker rm splanet || true # κΈ°μ‘΄ μ»¨ν…Œμ΄λ„ˆ 제거
sudo docker run -d --name splanet -p 80:8080 kimsongmok/splanet:${{ env.IMAGE_TAG }} # μƒˆ μ»¨ν…Œμ΄λ„ˆ μ‹€ν–‰
sudo docker pull kimsongmok/splanet:${{ env.IMAGE_TAG }}
sudo docker stop splanet || true
sudo docker rm splanet || true
sudo docker run -d --name splanet \
-e MYSQL_PROD_URL=${{ secrets.MYSQL_PROD_URL }} \
-e MYSQL_PROD_USER=${{ secrets.MYSQL_PROD_USER }} \
-e MYSQL_PROD_PASSWORD=${{ secrets.MYSQL_PROD_PASSWORD }} \
-e MYSQL_DATABASE=${{ secrets.MYSQL_DATABASE }} \
-e CLIENT_ID=${{ secrets.CLIENT_ID }} \
-e CLIENT_SECRET=${{ secrets.CLIENT_SECRET }} \
-e JWT_SECRET=${{ secrets.JWT_SECRET }} \
-e REDIRECT_URL=${{ secrets.REDIRECT_URL }} \
-p 80:8080 --restart unless-stopped kimsongmok/splanet:${{ env.IMAGE_TAG }}\
-v ./src/main/resources/env.properties

0 comments on commit 7dadd3f

Please sign in to comment.