From 311be84e58f17321028a93c29a8276f6f333650b Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Mon, 4 Dec 2023 16:33:43 +0800 Subject: [PATCH] fix: update graphql base on GRL_SDK_GENERATOR_IMAGE update Signed-off-by: Abirdcfly --- .github/workflows/graphql_sdk_generate.yml | 2 +- Makefile | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/graphql_sdk_generate.yml b/.github/workflows/graphql_sdk_generate.yml index d8e66b5e4..673eabc17 100644 --- a/.github/workflows/graphql_sdk_generate.yml +++ b/.github/workflows/graphql_sdk_generate.yml @@ -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: diff --git a/Makefile b/Makefile index 2953e4e49..3ccdc0932 100644 --- a/Makefile +++ b/Makefile @@ -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