Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
web
Commits
91e9e26e
提交
91e9e26e
authored
5月 26, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(config):测试环境配置
上级
b7affabd
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
62 行增加
和
2 行删除
+62
-2
feature-chuck.yml
.github/workflows/feature-chuck.yml
+60
-0
config.ts
api/config.ts
+1
-1
next.config.js
next.config.js
+1
-1
没有找到文件。
.github/workflows/feature-chuck.yml
0 → 100644
浏览文件 @
91e9e26e
name
:
Build and Push to ACR
on
:
push
:
branches
:
[
"
feature/chuck"
]
env
:
REGION_ID
:
cn-shenzhen
REGISTRY
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com
NAMESPACE
:
sharefly-dev
IMAGE
:
web
TAG
:
${{ github.sha }}
ACR_EE_REGISTRY
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com
ACR_EE_INSTANCE_ID
:
cri-yhk5zgfc2v1sia6l
ACR_EE_NAMESPACE
:
sharefly-dev
ACR_EE_IMAGE
:
web
ACR_EE_TAG
:
${{ github.sha }}
JAVA_VERSION
:
"
8"
GITLAB_URL
:
https://oauth2:MjVJKxB7m4tCy7symBzn@git.mmcuav.cn/iuav/csf-web.git
permissions
:
contents
:
read
jobs
:
build
:
runs-on
:
ubuntu-latest
environment
:
dev
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
Login to ACR EE with the AccessKey pair
uses
:
aliyun/acr-login@v1
with
:
login-server
:
"
https://${{
env.ACR_EE_REGISTRY
}}"
region-id
:
"
${{
env.REGION_ID
}}"
username
:
"
QD--KeBiTeHangKong@1354706964800968"
password
:
"
MMC@2023&ACR"
instance-id
:
"
${{
env.ACR_EE_INSTANCE_ID
}}"
-
name
:
Build and push image to ACR EE
run
:
|
docker build -t "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG" .
docker push "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG"
-
name
:
Kustomize Set Image
run
:
|-
cd kustomization/overlays/dev
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash /dev/stdin 3.8.6
./kustomize edit set image REGISTRY/NAMESPACE/IMAGE:TAG=$REGISTRY/$NAMESPACE/$IMAGE:$TAG
-
name
:
Commit and Push
run
:
|
git config user.name "Chuck"
git config user.email "Chuck@users.noreply.github.com"
git remote set-url origin "$GITLAB_URL"
git commit -am "Generated Image Update"
git push origin "feature/chuck"
api/config.ts
浏览文件 @
91e9e26e
...
...
@@ -3,7 +3,7 @@ const dev = {
};
const
prod
=
{
baseUrl
:
"https://iuav.mmcuav.cn"
,
baseUrl
:
"https://
test.
iuav.mmcuav.cn"
,
};
export
default
process
.
env
.
NODE_ENV
===
"development"
?
dev
:
prod
;
next.config.js
浏览文件 @
91e9e26e
...
...
@@ -27,7 +27,7 @@ const nextConfig = {
return
[
{
source
:
"/local/:path*"
,
destination
:
"https://iuav.mmcuav.cn/:path*"
,
destination
:
"https://
test.
iuav.mmcuav.cn/:path*"
,
},
];
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论