Skip to content

Commit 2141e96

Browse files
chore: Change in the CIDR for Z (quay#3693)
1 parent f88cacf commit 2141e96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-publish.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Add rule to VPC
4141
id: sg-rule-id
4242
run: |
43-
cidr="$(hostname -i)"
43+
cidr=$(dig +short myip.opendns.com @resolver1.opendns.com)
4444
echo $cidr
4545
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')
4646
echo $SGRID
@@ -127,5 +127,6 @@ jobs:
127127
tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.event.inputs.tag || env.TAG }}
128128

129129
- name: Clean up
130+
if: success() || failure()
130131
run: |
131132
ibmcloud is security-group-rule-delete ${{ secrets.SG_ID }} $RID -f

0 commit comments

Comments
 (0)