From 3b93e0cfb4800670e7f18613719db36ad2b0489f Mon Sep 17 00:00:00 2001 From: Minsu Bae <104720635+minsu-cnu@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:27:19 +0900 Subject: [PATCH] =?UTF-8?q?Update=20deploy.yml=20:=20=EC=9E=84=EC=8B=9C=20?= =?UTF-8?q?SSH=20=ED=82=A4=20=EC=82=AD=EC=A0=9C=20=EA=B5=AC=EB=AC=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=BD=94=EB=93=9C=20=EA=B0=84?= =?UTF-8?q?=EC=86=8C=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index faf156aa..f6937a14 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -61,15 +61,11 @@ jobs: with: name: team18-be-jar - - name: Authenticate with GCP - uses: google-github-actions/auth@v1 - with: - credentials_json: "${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}" - - name: Set up Google Cloud SDK uses: google-github-actions/setup-gcloud@v1 with: project_id: ${{ secrets.GCP_PROJECT_ID }} + credentials_json: "${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}" - name: Get GitHub Actions Runner IP id: get_ip @@ -120,3 +116,6 @@ jobs: # 업데이트된 firewall 규칙 적용 gcloud compute firewall-rules update default-allow-ssh \ --source-ranges=$NEW_SOURCE_RANGES + + - name: Clean up SSH key + run: rm ./key-hirehigher