From baaadeba11da4405b69e6ba4a4053319da01409b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=ED=99=8D=EC=84=9D?= <78216059+bayy1216@users.noreply.github.com> Date: Sun, 2 Jun 2024 17:36:13 +0900 Subject: [PATCH] [Fix]: fix yml --- .github/workflows/cicd.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index ef4005b..e9cb286 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -38,7 +38,6 @@ jobs: # appleboy/ssh-action@master 액션을 사용하여 지정한 서버에 ssh로 접속하고, script를 실행합니다. # script의 내용은 도커의 기존 프로세스들을 제거하고, docker repo로부터 방금 위에서 push한 내용을 pull 받아 실행하는 것입니다. - # 실행 시, docker-compose를 사용합니다. steps: - name: Deploy to server uses: appleboy/ssh-action@master @@ -54,14 +53,14 @@ jobs: docker image prune -f # 사용하지 않는 도커 이미지들을 제거합니다. docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }} - docker run -d -p 80:8080 -e SPRING_PROFILES_ACTIVE=prod \ - -e KAKAO_CLIENT_SECRET=${{ secrets.KAKAO_CLIENT_SECRET }} \ - -e NAVER_CLIENT_SECRET=${{ secrets.NAVER_CLIENT_SECRET }} \ - -e KAKAO_REDIRECT_URI=${{ secrets.KAKAO_REDIRECT_URI }} \ - -e MYSQL_URL=${{ secrets.MYSQL_URL }} \ - -e MYSQL_USERNAME=${{ secrets.MYSQL_USERNAME }} \ - -e MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }} \ - -e S3_BUCKET=${{ secrets.S3_BUCKET }} \ - -e S3_ACCESS_KEY=${{ secrets.S3_ACCESS_KEY }} \ - -e S3_SECRET_KEY=${{ secrets.S3_SECRET_KEY }} \ + docker run -d -p 80:8080 -e SPRING_PROFILES_ACTIVE=prod \ + -e KAKAO_CLIENT_SECRET=${{ secrets.KAKAO_CLIENT_SECRET }} \ + -e NAVER_CLIENT_SECRET=${{ secrets.NAVER_CLIENT_SECRET }} \ + -e KAKAO_REDIRECT_URI=${{ secrets.KAKAO_REDIRECT_URI }} \ + -e MYSQL_URL=${{ secrets.MYSQL_URL }} \ + -e MYSQL_USERNAME=${{ secrets.MYSQL_USERNAME }} \ + -e MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }} \ + -e S3_BUCKET=${{ secrets.S3_BUCKET }} \ + -e S3_ACCESS_KEY=${{ secrets.S3_ACCESS_KEY }} \ + -e S3_SECRET_KEY=${{ secrets.S3_SECRET_KEY }} \ ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }}