import os DEBUG = False GITHUB_TOKEN = os.environ.get('GITHUB_TOKEN') APPS = { 'community-website': { 'api_token': os.environ.get('COMMUNITY_WEBSITE_TOKEN', 'ok'), # 配置文件位置 'file_name': 'uk8s/fluxcd/tenants/base/frontend/community-website.yaml', # deployment.yaml 在文件中的顺序 'yaml_position': 2, # image 在 deployment 中的位置 'jq_path': 'spec.template.spec.containers.0.image' }, 'community-blog': { 'api_token': os.environ.get('COMMUNITY_BLOG_TOKEN', 'ok'), 'file_name': 'uk8s/fluxcd/tenants/base/frontend/community-blog.yaml', 'yaml_position': 3, 'jq_path': 'spec.template.spec.containers.0.image' }, 'asktug-api-proxy': { 'api_token': os.environ.get('ASKTUG_API_PROXY_TOKEN', 'ok'), 'file_name': 'uk8s/fluxcd/tenants/base/frontend/asktug-api-proxy.yaml', 'yaml_position': 1, 'jq_path': 'spec.template.spec.containers.0.image' }, 'community-book': { 'api_token': os.environ.get('COMMUNITY_WEBSITE_TOKEN', 'ok'), 'file_name': 'uk8s/fluxcd/tenants/base/frontend/community-book.yaml', 'yaml_position': 0, 'jq_path': 'spec.template.spec.containers.0.image' }, 'community-website-preview': { 'api_token': os.environ.get('COMMUNITY_PREVIEW_TOKEN', 'ok'), 'file_name': 'uk8s/fluxcd/tenants/base/preview/community-website.yaml', 'yaml_position': 2, 'jq_path': 'spec.template.spec.containers.0.image' }, 'community-blog-preview': { 'api_token': os.environ.get('COMMUNITY_PREVIEW_TOKEN', 'ok'), 'file_name': 'uk8s/fluxcd/tenants/base/preview/community-blog.yaml', 'yaml_position': 3, 'jq_path': 'spec.template.spec.containers.0.image' }, 'asktug-api-proxy-preview': { 'api_token': os.environ.get('COMMUNITY_PREVIEW_TOKEN', 'ok'), 'file_name': 'uk8s/fluxcd/tenants/base/preview/asktug-api-proxy.yaml', 'yaml_position': 1, 'jq_path': 'spec.template.spec.containers.0.image' }, 'community-book-preview': { 'api_token': os.environ.get('COMMUNITY_PREVIEW_TOKEN', 'ok'), 'file_name': 'uk8s/fluxcd/tenants/base/preview/community-book.yaml', 'yaml_position': 0, 'jq_path': 'spec.template.spec.containers.0.image' }, }