Skip to content

Commit

Permalink
Added an output in the deployment step to show the url of the deploye…
Browse files Browse the repository at this point in the history
…d app
  • Loading branch information
marcuss committed Oct 17, 2024
1 parent 236e06a commit f8cbd16
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,6 @@ jobs:
kubectl get pods -l app=marco-nico-app
kubectl describe deployment marco-nico
- name: Wait for LoadBalancer IP
id: get_lb
- name: Available at
run: |
echo "Waiting for LoadBalancer to be provisioned..."
while true; do
LB_HOSTNAME=$(kubectl get svc marco-nico-service -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
if [ ! -z "$LB_HOSTNAME" ]; then
echo "LB_HOSTNAME=$LB_HOSTNAME" >> $GITHUB_ENV
break
fi
echo "Still waiting..."
sleep 10
done
echo "Application is accessible at http://$LB_HOSTNAME"
- name: Output LoadBalancer Hostname
run: |
echo "LoadBalancer Hostname: ${{ env.LB_HOSTNAME }}"
kubectl get service marco-nico-service -n default

0 comments on commit f8cbd16

Please sign in to comment.