Skip to content

Commit

Permalink
fix ci build error (#77)
Browse files Browse the repository at this point in the history
* fix: update invoke of GetNamespaces

Signed-off-by: warjiang <[email protected]>

* ci: only build and push image in karmada-io/dashboard repo

Signed-off-by: warjiang <[email protected]>

---------

Signed-off-by: warjiang <[email protected]>
  • Loading branch information
warjiang authored Aug 8, 2024
1 parent 48a9a97 commit f21a822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
name: dashboard_artifact

build-and-push-web:
if: ${{ github.repository == 'karmada-io/dashboard' }}
runs-on: ubuntu-latest
needs: [ "build-fronted" ]
env:
Expand Down Expand Up @@ -86,6 +87,7 @@ jobs:
build-and-push-api:
if: ${{ github.repository == 'karmada-io/dashboard' }}
runs-on: ubuntu-latest
env:
IMAGE_NAME: karmada/karmada-dashboard-api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const WorkloadPage = () => {
const { data: nsData } = useQuery({
queryKey: ['GetNamespaces'],
queryFn: async () => {
const clusters = await GetNamespaces();
const clusters = await GetNamespaces({});
return clusters.data || {};
},
});
Expand Down

0 comments on commit f21a822

Please sign in to comment.