-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ jobs: | |
# GET GitHub IP (5) | ||
- name: get GitHub IP | ||
id: ip | ||
uses: haytrunhem/[email protected] | ||
run: echo "ipv4=$(curl -s https://api.ipify.org)" >> $GITHUB_ENV | ||
|
||
# Configure AWS Credentials (6) - AWS 접근 권한 취득(IAM) | ||
- name: Configure AWS Credentials | ||
|
@@ -66,7 +66,7 @@ jobs: | |
# Add github ip to AWS (7) | ||
- name: Add GitHub IP to AWS | ||
run: | | ||
aws ec2 authorize-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port 22 --cidr ${{ steps.ip.outputs.ipv4 }}/32 | ||
aws ec2 authorize-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port 22 --cidr ${{ env.ipv4 }}/32 | ||
# AWS EC2 Server Connect & Docker 명령어 실행 (8) | ||
- name: AWS EC2 Connection | ||
|
@@ -85,4 +85,4 @@ jobs: | |
# REMOVE Github IP FROM security group (9) | ||
- name: Remove IP FROM security group | ||
run: | | ||
aws ec2 revoke-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port 22 --cidr ${{ steps.ip.outputs.ipv4 }}/32 | ||
aws ec2 revoke-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port 22 --cidr ${{ env.ipv4 }}/32 |