From aa91bbd35b83469b8b8dd708c17c9cb9f6e6fb51 Mon Sep 17 00:00:00 2001 From: sd0 Date: Sun, 27 Aug 2023 13:49:20 +0800 Subject: [PATCH] fix: script f --- .github/workflows/pr_agent.yml | 18 ++++++++++++++++++ .../yggdrasil-core-engine/env/.env.staging | 2 +- .../yggdrasil-discord-client/env/.env.staging | 2 +- tools/shell-script/package.sh | 2 +- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/pr_agent.yml diff --git a/.github/workflows/pr_agent.yml b/.github/workflows/pr_agent.yml new file mode 100644 index 0000000..d5ff531 --- /dev/null +++ b/.github/workflows/pr_agent.yml @@ -0,0 +1,18 @@ +on: + pull_request: + issue_comment: +jobs: + pr_agent_job: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + contents: write + name: Run pr agent on every pull request, respond to user comments + steps: + - name: PR Agent action step + id: pragent + uses: Codium-ai/pr-agent@main + env: + OPENAI_KEY: ${{ secrets.OPENAI_KEY }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} diff --git a/tools/cdk8s/yggdrasil-core-engine/env/.env.staging b/tools/cdk8s/yggdrasil-core-engine/env/.env.staging index 89a7c70..5717bdd 100644 --- a/tools/cdk8s/yggdrasil-core-engine/env/.env.staging +++ b/tools/cdk8s/yggdrasil-core-engine/env/.env.staging @@ -1,5 +1,5 @@ SERVICE_TAGS=provision -IMAGE_PATH=registry.gitlab.com/welfree-studio/yggdrasil-core-engine/yggdrasil-core-engine-image: +IMAGE_PATH=registry.gitlab.com/welfree-studio/asgard-hub/yggdrasil-core-engine-image: APP_CLUSTER_PORT=80 IMAGE_PULL_POLICY=IfNotPresent IMAGE_PULL_SECRETS=gitlab-registry diff --git a/tools/cdk8s/yggdrasil-discord-client/env/.env.staging b/tools/cdk8s/yggdrasil-discord-client/env/.env.staging index 31d1688..5717bdd 100644 --- a/tools/cdk8s/yggdrasil-discord-client/env/.env.staging +++ b/tools/cdk8s/yggdrasil-discord-client/env/.env.staging @@ -1,5 +1,5 @@ SERVICE_TAGS=provision -IMAGE_PATH=registry.gitlab.com/welfree-studio/yggdrasil-discord-client/yggdrasil-core-engine-image: +IMAGE_PATH=registry.gitlab.com/welfree-studio/asgard-hub/yggdrasil-core-engine-image: APP_CLUSTER_PORT=80 IMAGE_PULL_POLICY=IfNotPresent IMAGE_PULL_SECRETS=gitlab-registry diff --git a/tools/shell-script/package.sh b/tools/shell-script/package.sh index 073e663..0930777 100644 --- a/tools/shell-script/package.sh +++ b/tools/shell-script/package.sh @@ -7,7 +7,7 @@ if [ "${CI}" = true ] ; then /kaniko/executor \ --context "${CI_PROJECT_DIR}" \ --dockerfile "${CI_PROJECT_DIR}/apps/${PROJECT_NAME}/Dockerfile" \ - --destination "${CI_REGISTRY_IMAGE}/yu-gpt-engine-image:${CI_COMMIT_SHA}" \ + --destination "${CI_REGISTRY_IMAGE}/${PROJECT_NAME}:${CI_COMMIT_SHA}" \ --cache=false \ --cleanup \ --build-arg "SERVER_VERSION=${CI_COMMIT_SHORT_SHA}"