From fa77265fa2a542ef2093bc10cf52de382d7ed485 Mon Sep 17 00:00:00 2001 From: juchan204 Date: Wed, 4 Dec 2024 10:26:49 +0900 Subject: [PATCH] =?UTF-8?q?MATE-85=20:=20[FIX]=20deploy.yml=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=ED=95=98=EC=97=AC=20=EB=B0=B0=ED=8F=AC=20=EC=8B=9C?= =?UTF-8?q?=EB=8F=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a90a40c6..f581f65e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,16 +6,29 @@ on: jobs: deploy: runs-on: ubuntu-latest + env: + NAVER_CLIENT_ID: ${{ secrets.NAVER_CLIENT_ID }} + NAVER_REDIRECT_URI: ${{ secrets.NAVER_REDIRECT_URI }} + NAVER_CLIENT_SECRET: ${{ secrets.NAVER_CLIENT_SECRET }} + JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} + OPENWEATHER_API_KEY: ${{ secrets.OPENWEATHER_API_KEY }} + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Build with Gradle + run: ./gradlew clean build + - name: SSH로 EC2에 접속하기 uses: appleboy/ssh-action@v1.2.0 env: APPLICATION_PROPERTIES: ${{ secrets.APPLICATION_PROPERTIES }} - NAVER_CLIENT_ID: ${{ secrets.NAVER_CLIENT_ID }} - NAVER_REDIRECT_URI: ${{ secrets.NAVER_REDIRECT_URI }} - NAVER_CLIENT_SECRET: ${{ secrets.NAVER_CLIENT_SECRET }} - JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} - OPENWEATHER_API_KEY: ${{ secrets.OPENWEATHER_API_KEY }} with: host: ${{ secrets.EC2_HOST }} username: ${{ secrets.EC2_USERNAME }}