Skip to content

Commit

Permalink
Merge pull request #29 from bescka/workflows
Browse files Browse the repository at this point in the history
workflow - runner whitelist and sleep
  • Loading branch information
BraunRudolf authored Aug 1, 2024
2 parents 15968d2 + 81ac519 commit 37372a0
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 37372a0

Please sign in to comment.