Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update graphql base on GRL_SDK_GENERATOR_IMAGE update #324

Merged
merged 1 commit into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/graphql_sdk_generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
paths:
- 'graphql-server/go-server/graph/schema/**'
- 'graphql-server/go-server/graph/schema/*.gql'
workflow_dispatch:

jobs:
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,15 @@ run-graphql-server:
# sdk for graphql-server api
GRL_SDK_GENERATOR_IMAGE ?= yuntijs/gql-sdk-generator:latest
GRAPH_API_ENDPOINT ?= http://0.0.0.0:8888/bff
# TODO change this config to a more constant value: /kubeagi-apis/bff after frontend code is ready
GRAPH_CLIENT_ENDPOINT ?= https://portal.172.22.96.136.nip.io/kubeagi-apis/bff
.PHONY: gql-sdk-generator
gql-sdk-generator:
docker run --rm --net=host --env SDK_PACKAGE_NAME=@yuntijs/arcadia-bff-sdk --env SDK_YUNTI_NAME=ArcadiaBffSDK --env GRAPH_API_ENDPOINT=${GRAPH_API_ENDPOINT} -v $(shell pwd)/graphql-server/go-server/graph/schema:/schema -v ~/.npmrc:/root/.npmrc ${GRL_SDK_GENERATOR_IMAGE}
docker run --rm --net=host --env SDK_PACKAGE_NAME=@yuntijs/arcadia-bff-sdk \
--env SDK_YUNTI_NAME=ArcadiaBffSDK --env GRAPH_API_ENDPOINT=${GRAPH_API_ENDPOINT} \
--env GRAPH_CLIENT_ENDPOINT=${GRAPH_CLIENT_ENDPOINT} \
-v $(shell pwd)/graphql-server/go-server/graph/schema:/schema \
-v ~/.npmrc:/root/.npmrc ${GRL_SDK_GENERATOR_IMAGE}

# prepare for git push
.PHONY: prepare-push
Expand Down