Skip to content

Commit

Permalink
Fix deployment urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
DvDty committed Jan 28, 2024
1 parent 31a56d7 commit 9c1ca07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/branch-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

build-check-push-image:
build-push-image:
runs-on: ubuntu-latest
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion master/app/Kubectl.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getDeployments(): Collection
'lifespan' => data_get($deployment, 'metadata.annotations.lifespan') . ' minutes',

# Hardcoded cluster IP, need to refactor "NodePort" services to fix :(
'url' => 'http://192.168.49.2:' . $services->get(data_get($deployment, 'metadata.name') . 'service'),
'url' => 'http://192.168.49.2:' . $services->get(data_get($deployment, 'metadata.name') . '-service'),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion master/resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<td>{{ $deployment['name'] }}</td>
<td>{{ $deployment['branch'] }}</td>
<td>{{ $deployment['lifespan'] }}</td>
<td><a href="#">{{ $deployment['url'] }}</a></td>
<td><a href="{{ $deployment['url'] }} ">{{ $deployment['url'] }}</a></td>
<td>
<button>Refresh</button>
</td>
Expand Down

0 comments on commit 9c1ca07

Please sign in to comment.