Skip to content

Commit

Permalink
workflow - runner whitelist and sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
bescka committed Aug 1, 2024
1 parent 82975fd commit 81ac519
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
--port 22 \
--cidr ${{ steps.ip.outputs.ipv4 }}/32
- name: Wait for security group update to propagate
run: sleep 30

- name: Checkout repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -111,3 +114,11 @@ jobs:
echo "Cleaning up SSH keys..."
rm -rf ~/.ssh/id_ed25519
echo "SSH keys cleaned up."
- name: revoke runner ip address
run: |
aws ec2 revoke-security-group-ingress \
--group-id $AWS_INSTANCE_SG_ID \
--protocol tcp \
--port 22 \
--cidr ${{ steps.ip.outputs.ipv4 }}/32

0 comments on commit 81ac519

Please sign in to comment.