Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moonjin-kim authored Mar 13, 2024
1 parent 25fd179 commit 94c6073
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ jobs:
docker build -t ${{ secrets.DOCKER_REPO }}/planit-server .
docker push ${{ secrets.DOCKER_REPO }}/planit-server
- name: Add Github Actions IP to Security group
run: |
aws ec2 authorize-security-group-ingress --group-id ${{ secrets.EC2_SG_ID }} --protocol tcp --port 22 --cidr ${{ steps.ip.outputs.ipv4 }}/32
- name: Get Github Actions IP
id: ip
uses: haythem/[email protected]
Expand All @@ -51,7 +48,11 @@ jobs:
aws-access-key-id: ${{ secrets.EC2_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.EC2_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.EC2_REGION }}


- name: Add Github Actions IP to Security group
run: |
aws ec2 authorize-security-group-ingress --group-id ${{ secrets.EC2_SG_ID }} --protocol tcp --port 22 --cidr ${{ steps.ip.outputs.ipv4 }}/32
- name: Deploy to EC2
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit 94c6073

Please sign in to comment.