Skip to content

Commit

Permalink
Attempt to fix IP
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikthepixel committed Jan 18, 2024
1 parent 5e21c65 commit f920345
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release-microservices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,14 @@ jobs:
- name: "Install azure-frontdoor extension"
run: az extension add --name front-door

- name: "Get AKS public ip"
uses: sergeysova/jq-action@v2
id: aks-ip
with:
cmd: "run: kubectl get ingress gateway-ingress -o json | jq -r .status.loadBalancer.ingress[0].ip"

- name: "Set api ip-address"
run: |
echo "AKS_IP=$(kubectl get ingress gateway-ingress -o json | jq -r .status.loadBalancer.ingress[0].ip)" >> "$GITHUB_ENV"
az network front-door backend-pool backend update \
-g squaremarket-group \
-f squaremarket-frontdoor \
--pool-name api \
--index 1 \
--backend-host-header ${{ steps.aks-ip.outputs.value }} \
--address ${{ steps.aks-ip.outputs.value }}
--backend-host-header $AKS_IP \
--address $AKS_IP

0 comments on commit f920345

Please sign in to comment.