1
0
mirror of https://github.com/quay/quay.git synced 2025-04-18 10:44:06 +03:00

chore: Change in the CIDR for Z (#3693)

This commit is contained in:
Sivaram Singana 2025-03-04 19:35:57 +05:30 committed by GitHub
parent f88cacf388
commit 2141e96448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ jobs:
- name: Add rule to VPC - name: Add rule to VPC
id: sg-rule-id id: sg-rule-id
run: | run: |
cidr="$(hostname -i)" cidr=$(dig +short myip.opendns.com @resolver1.opendns.com)
echo $cidr 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') 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 echo $SGRID
@ -127,5 +127,6 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.event.inputs.tag || env.TAG }} tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.event.inputs.tag || env.TAG }}
- name: Clean up - name: Clean up
if: success() || failure()
run: | run: |
ibmcloud is security-group-rule-delete ${{ secrets.SG_ID }} $RID -f ibmcloud is security-group-rule-delete ${{ secrets.SG_ID }} $RID -f