Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
b30a446e
提交
b30a446e
authored
7月 12, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(config):镜像构建验证
上级
3c97f3dd
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
1 行删除
+7
-1
develop.yml
.github/workflows/develop.yml
+1
-0
master.yml
.github/workflows/master.yml
+1
-0
Dockerfile
Dockerfile
+4
-1
package.json
package.json
+1
-0
没有找到文件。
.github/workflows/develop.yml
浏览文件 @
b30a446e
...
@@ -18,6 +18,7 @@ env:
...
@@ -18,6 +18,7 @@ env:
ACR_EE_TAG
:
${{ github.sha }}
ACR_EE_TAG
:
${{ github.sha }}
JAVA_VERSION
:
"
8"
JAVA_VERSION
:
"
8"
GITLAB_URL
:
https://oauth2:MjVJKxB7m4tCy7symBzn@git.mmcuav.cn/iuav/csf-admin.git
GITLAB_URL
:
https://oauth2:MjVJKxB7m4tCy7symBzn@git.mmcuav.cn/iuav/csf-admin.git
PROFILES_ACTIVE
:
development
permissions
:
permissions
:
contents
:
read
contents
:
read
...
...
.github/workflows/master.yml
浏览文件 @
b30a446e
...
@@ -19,6 +19,7 @@ env:
...
@@ -19,6 +19,7 @@ env:
ACR_EE_TAG
:
${{ github.sha }}
ACR_EE_TAG
:
${{ github.sha }}
JAVA_VERSION
:
"
8"
JAVA_VERSION
:
"
8"
GITLAB_URL
:
https://oauth2:MjVJKxB7m4tCy7symBzn@git.mmcuav.cn/iuav/csf-admin.git
GITLAB_URL
:
https://oauth2:MjVJKxB7m4tCy7symBzn@git.mmcuav.cn/iuav/csf-admin.git
PROFILES_ACTIVE
:
production
permissions
:
permissions
:
contents
:
read
contents
:
read
...
...
Dockerfile
浏览文件 @
b30a446e
...
@@ -6,7 +6,10 @@ RUN npm ci
...
@@ -6,7 +6,10 @@ RUN npm ci
COPY
. .
COPY
. .
#EXPOSE 5173
#EXPOSE 5173
#CMD ["npm", "run", "dev"]
#CMD ["npm", "run", "dev"]
RUN
npm run build
RUN
\
if
[
$PROFILES_ACTIVE
=
'development'
]
;
then
echo
"env PROFILES_ACTIVE=development. exec npm run buildDev"
&&
npm run buildDev
;
\
else
echo
"env PROFILES_ACTIVE not found. exec npm run build"
&&
npm run build
;
\
fi
# nginx
# nginx
FROM
nginx:alpine as production
FROM
nginx:alpine as production
...
...
package.json
浏览文件 @
b30a446e
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
"scripts"
:
{
"scripts"
:
{
"dev"
:
"vite"
,
"dev"
:
"vite"
,
"build"
:
"vite build"
,
"build"
:
"vite build"
,
"buildDev"
:
"vite build --mode development"
,
"build:tsc"
:
"tsc && vite build"
,
"build:tsc"
:
"tsc && vite build"
,
"preview"
:
"vite preview"
,
"preview"
:
"vite preview"
,
"lint"
:
"npx eslint src"
,
"lint"
:
"npx eslint src"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论