From 7f30538b42989afaf14791317db34d25ad76dc69 Mon Sep 17 00:00:00 2001 From: yaongmeow Date: Sun, 14 Jul 2024 18:20:38 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20actions=20secret=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d2ba29e..f79c02c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,11 +39,35 @@ jobs: with: host: ${{ secrets.SERVER_IP }} username: ${{ secrets.SERVER_USERNAME }} - password: ${{ secrets.SERVER_PASSWORD }} + key: ${{ secrets.SERVER_KEY }} port: ${{ secrets.SERVER_PORT }} script: | docker login --username ${{ secrets.DOCKER_ID }} --password ${{ secrets.DOCKER_PASSWORD }} docker pull traveline/traveline-docker docker stop traveline-container || true docker rm traveline-container || true - docker run -e DB_HOST=${{ secrets.DB_HOST }} -e DB_PORT=${{ secrets.DB_PORT }} -e DB_USER=${{ secrets.DB_USER }} -e DB_PASSWORD=${{ secrets.DB_PASSWORD }} -e DB_DATABASE=${{ secrets.DB_DATABASE }} -e NCP_ACCESS_KEY_ID=${{ secrets.NCP_ACCESS_KEY_ID }} -e NCP_SECRET_ACCESS_KEY=${{ secrets.NCP_SECRET_ACCESS_KEY }} -e NCP_REGION=${{ secrets.NCP_REGION }} -e JWT_SECRET_ACCESS=${{ secrets.JWT_SECRET_ACCESS }} -e JWT_SECRET_REFRESH=${{ secrets.JWT_SECRET_REFRESH }} -e CLIENT_ID=${{ secrets.CLIENT_ID }} -e TEAM_ID=${{ secrets.TEAM_ID }} -e KEY_ID=${{ secrets.KEY_ID }} -e AUTH_KEY_LINE1=${{ secrets.AUTH_KEY_LINE1 }} -e AUTH_KEY_LINE2=${{ secrets.AUTH_KEY_LINE2 }} -e AUTH_KEY_LINE3=${{ secrets.AUTH_KEY_LINE3 }} -e AUTH_KEY_LINE4=${{ secrets.AUTH_KEY_LINE4 }} -e KAKAO_REST_API_KEY=${{ secrets.KAKAO_REST_API_KEY }} -e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} -e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} -e AWS_REGION=${{ secrets.AWS_REGION }} -e GREENEYE_SECRET_KEY=${{ secrets.GREENEYE_SECRET_KEY }} -e GREENEYE_DOMAIN_ID=${{ secrets.GREENEYE_DOMAIN_ID }} -e GREENEYE_SIGNATURE=${{ secrets.GREENEYE_SIGNATURE }} -d -p ${{secrets.EXTERNAL_PORT}}:${{secrets.INTERNAL_PORT}} --name traveline-container traveline/traveline-docker + docker run -e DB_HOST=${{ secrets.DB_HOST }} \ + -e DB_PORT=${{ secrets.DB_PORT }} \ + -e DB_USER=${{ secrets.DB_USER }} \ + -e DB_PASSWORD=${{ secrets.DB_PASSWORD }} \ + -e DB_DATABASE=${{ secrets.DB_DATABASE }} \ + -e NCP_ACCESS_KEY_ID=${{ secrets.NCP_ACCESS_KEY_ID }} \ + -e NCP_SECRET_ACCESS_KEY=${{ secrets.NCP_SECRET_ACCESS_KEY }} \ + -e NCP_REGION=${{ secrets.NCP_REGION }} \ + -e JWT_SECRET_ACCESS=${{ secrets.JWT_SECRET_ACCESS }} \ + -e JWT_SECRET_REFRESH=${{ secrets.JWT_SECRET_REFRESH }} \ + -e CLIENT_ID=${{ secrets.CLIENT_ID }} \ + -e TEAM_ID=${{ secrets.TEAM_ID }} \ + -e KEY_ID=${{ secrets.KEY_ID }} \ + -e AUTH_KEY_LINE1=${{ secrets.AUTH_KEY_LINE1 }} \ + -e AUTH_KEY_LINE2=${{ secrets.AUTH_KEY_LINE2 }} \ + -e AUTH_KEY_LINE3=${{ secrets.AUTH_KEY_LINE3 }} \ + -e AUTH_KEY_LINE4=${{ secrets.AUTH_KEY_LINE4 }} \ + -e KAKAO_REST_API_KEY=${{ secrets.KAKAO_REST_API_KEY }} \ + -e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \ + -e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \ + -e AWS_REGION=${{ secrets.AWS_REGION }} \ + -e GREENEYE_SECRET_KEY=${{ secrets.GREENEYE_SECRET_KEY }} \ + -e GREENEYE_DOMAIN_ID=${{ secrets.GREENEYE_DOMAIN_ID }} \ + -e GREENEYE_SIGNATURE=${{ secrets.GREENEYE_SIGNATURE }} \ + -d -p ${{secrets.EXTERNAL_PORT}}:${{secrets.INTERNAL_PORT}} --name traveline-container traveline/traveline-docker