Skip to content

Commit

Permalink
πŸš€ [Deploy] - AWS 접속 μ‹œ, λ°œμƒν•˜λŠ” 였λ₯˜λ₯Ό ν•΄κ²°ν•œλ‹€ (#18)
Browse files Browse the repository at this point in the history
* ✨ [Feature] - Choco APIλ₯Ό κ΅¬ν˜„ν•œλ‹€ (#8)

* Refactor: 디렉토리 이름 μˆ˜μ •

* Feat: Choco API 생성 μ™„λ£Œ

* Chore: Redis credential μˆ˜μ • (#11)

* Chore: CI/CD 진행 μ‹œμ—λ§Œ λ°”μŠ€ν‹°μ˜¨ 호슀트의 ingress 22번 포트λ₯Ό λš«μ„ 수 μžˆλ„λ‘ ν•œλ‹€ (#14)

* Chore: Github actions IP 였λ₯˜λ₯Ό ν•΄κ²°ν•œλ‹€ (#17)

---------

Co-authored-by: λ―Όμž₯규 <[email protected]>
  • Loading branch information
JeongHeumChoi and Jang99u authored Aug 31, 2024
1 parent 33ce6f2 commit b0c7e5d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'ap-northeast-2'

- name: Set Github Actions IP
run: |
TEMP_IP=$(curl -s http://checkip.amazonaws.com)
echo "TEMP_IP=$TEMP_IP" >> $GITHUB_ENV
- name: Add GitHub Actions IP
run: |
aws ec2 authorize-security-group-ingress \
--group-id ${{ secrets.SECURITY_GROUP_ID }} \
--protocol tcp \
--port 22 \
--cidr ${{ steps.ip.outputs.ipv4 }}/32
--cidr ${{ TEMP_IP }}/32
- name: Connect Bastion Host And Run deploy.sh
uses: appleboy/[email protected]
Expand All @@ -82,4 +85,4 @@ jobs:
--group-id ${{ secrets.SECURITY_GROUP_ID }} \
--protocol tcp \
--port 22 \
--cidr ${{ steps.ip.outputs.ipv4 }}/32
--cidr ${{ TEMP_IP }}/32

0 comments on commit b0c7e5d

Please sign in to comment.