Skip to content

Commit

Permalink
Update deploy.yml : 임시 SSH 키 삭제 구문 추가 및 코드 간소화
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu-cnu authored Nov 11, 2024
1 parent 8d8c80e commit 3b93e0c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 3b93e0c

Please sign in to comment.