1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

[redhat-3.13] chore: Change in the CIDR for Z (#3696)

chore: Change in the CIDR for Z

Co-authored-by: sivaramsingana <47631665+sivaramsingana@users.noreply.github.com>
This commit is contained in:
OpenShift Cherrypick Robot
2025-03-05 19:09:34 +01:00
committed by GitHub
parent fceab15a5b
commit 460f4f8451

View File

@@ -40,7 +40,7 @@ jobs:
- name: Add rule to VPC
id: sg-rule-id
run: |
cidr="$(hostname -i)"
cidr=$(dig +short myip.opendns.com @resolver1.opendns.com)
echo $cidr
SGRID=$(ibmcloud is security-group-rule-add --sg ${{ secrets.SG_ID }} --direction=inbound --protocol=tcp --port-min=22 --port-max=22 --remote=$cidr --output JSON | jq -r '.id')
echo $SGRID
@@ -127,5 +127,6 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.event.inputs.tag || env.TAG }}
- name: Clean up
if: success() || failure()
run: |
ibmcloud is security-group-rule-delete ${{ secrets.SG_ID }} $RID -f