refactor: repo name

This commit is contained in:
Florian Hönicke
2023-05-04 19:51:23 +02:00
parent 3204ba2328
commit 8b45e5bacc
4 changed files with 5 additions and 5 deletions

View File

@@ -71,13 +71,13 @@ jobs:
with:
filters: |
changed:
- src/options/generate/static_files/base_image/**
- dev_gpt/options/generate/static_files/base_image/**
- name: Get base image tag
if: steps.check.outputs.changed == 'true'
shell: bash
run: |
FILE='src/constants.py'
FILE='dev_gpt/constants.py'
VERSION=$(sed -n '/DOCKER_BASE_IMAGE_VERSION =/p' $FILE | cut -d \' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV

View File

@@ -1,3 +1,3 @@
include requirements.txt
include dev-gpt.cmd
recursive-include src/options/generate/static_files/ *
recursive-include dev_gpt/options/generate/static_files/ *

View File

@@ -242,7 +242,7 @@ jcloud:
version: 3.15.1.dev14
labels:
creator: microchain
name: dev-gpt
name: gptdeploy
gateway:
{f"uses: {prefix}://{get_user_name(DEMO_TOKEN)}/Gateway{executor_name}:latest" if use_custom_gateway else ""}
{"" if use_docker else "install-requirements: True"}

View File

@@ -148,7 +148,7 @@ metas:
with open(os.path.join(os.path.dirname(__file__), 'static_files', 'microservice', 'jina_wrapper.py'), 'r', encoding='utf-8') as f:
microservice_executor_boilerplate = f.read()
microservice_executor_code = microservice_executor_boilerplate.replace('class Dev-GPTExecutor(Executor):',
microservice_executor_code = microservice_executor_boilerplate.replace('class DevGPTExecutor(Executor):',
f'class {microservice_name}(Executor):')
persist_file(microservice_executor_code, os.path.join(MICROSERVICE_FOLDER_v1, EXECUTOR_FILE_NAME))