Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN实习生计划
Gitpod
提交
37d72ea9
G
Gitpod
项目概览
CSDN实习生计划
/
Gitpod
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gitpod
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
37d72ea9
编写于
8月 25, 2020
作者:
M
Moritz Eysholdt
提交者:
GitHub
8月 25, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Release Build (#1731)
上级
a31c1475
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
15 deletion
+10
-15
.werft/build.js
.werft/build.js
+10
-9
.werft/build.yaml
.werft/build.yaml
+0
-6
未找到文件。
.werft/build.js
浏览文件 @
37d72ea9
...
...
@@ -43,7 +43,7 @@ async function build(context, version) {
const
masterBuild
=
context
.
Repository
.
ref
.
includes
(
"
refs/heads/master
"
);
const
dontTest
=
"
no-test
"
in
buildConfig
;
const
cacheLevel
=
"
no-cache
"
in
buildConfig
?
"
remote-push
"
:
"
remote
"
;
const
publishRelease
=
"
publish
R
elease
"
in
buildConfig
;
const
publishRelease
=
"
publish
-r
elease
"
in
buildConfig
;
werft
.
log
(
"
job config
"
,
JSON
.
stringify
({
buildConfig
,
version
,
...
...
@@ -67,8 +67,8 @@ async function build(context, version) {
exec
(
`leeway build --werft=true -c
${
cacheLevel
}
${
dontTest
?
'
--dont-test
'
:
''
}
-Dversion=
${
version
}
-DremoveSources=false -DimageRepoBase=eu.gcr.io/gitpod-core-dev/build`
,
buildEnv
);
if
(
publishRelease
)
{
exec
(
`gcloud auth activate-service-account --key-file "/mnt/secrets/gcp-sa-release/service-account.json"`
);
exec
(
`leeway build --werft=true -
c
${
cacheLevel
}
${
dontTest
?
'
--dont-test
'
:
''
}
-Dversion=
${
version
}
-DremoveSources=false -DimageRepoBase=eu.gcr.io/gitpod-io/self-hosted-ee
`
,
buildEnv
);
publishHelmChart
(
"
eu.gcr.io/gitpod-io/self-hosted
-ee
"
)
exec
(
`leeway build --werft=true -
Dversion=
${
version
}
-DremoveSources=false -DimageRepoBase=eu.gcr.io/gitpod-io/self-hosted
`
,
buildEnv
);
publishHelmChart
(
"
eu.gcr.io/gitpod-io/self-hosted
"
)
exec
(
`gcloud auth activate-service-account --key-file "
${
GCLOUD_SERVICE_ACCOUNT_PATH
}
"`
);
}
// gitTag(`build/${version}`);
...
...
@@ -257,14 +257,15 @@ async function issueAndInstallCertficate(namespace, domain) {
async
function
publishHelmChart
(
imageRepoBase
)
{
werft
.
phase
(
"
publish-charts
"
,
"
Publish charts
"
);
[
"
gcloud config set project gitpod-io
"
,
`leeway build -Dversion=
${
version
}
-DimageRepoBase=
${
imageRepoBase
}
--save helm-repo.tar.gz chart:helm`
,
"
tar xzfv helm-repo.tar.gz
"
,
"
mkdir helm-repo
"
,
"
tar xzfv helm-repo.tar.gz -C helm-repo
"
,
"
gsutil cp gs://charts-gitpod-io/index.yaml old-index.yaml
"
,
"
helm3 repo index --merge ../old-index.yaml helm-repo
"
,
"
gcloud auth activate-service-account --key-file /mnt/secrets/gcp-sa-gitpod-helmchartregistry/service-account.json
"
,
"
gcloud config set project gitpod-191109
"
,
"
gsutil -m rsync -r helm-repo gs://charts-gitpod-io/
"
"
cp gitpod*tgz helm-repo/
"
,
"
gsutil cp gs://charts-gitpod-io-public/index.yaml old-index.yaml
"
,
"
cp gitpod*.tgz helm-repo/
"
,
"
helm3 repo index --merge old-index.yaml helm-repo
"
,
"
gsutil -m rsync -r helm-repo/ gs://charts-gitpod-io-public/
"
].
forEach
(
cmd
=>
{
exec
(
cmd
,
{
slice
:
'
publish-charts
'
});
});
...
...
.werft/build.yaml
浏览文件 @
37d72ea9
...
...
@@ -10,9 +10,6 @@ pod:
-
name
:
gcp-sa-release
secret
:
secretName
:
gcp-sa-gitpod-release-deployer
-
name
:
gcp-sa-gitpod-helmchartregistry
secret
:
secretName
:
gcp-sa-gitpod-helmchartregistry-deployer
# - name: deploy-key
# secret:
# secretName: deploy-key
...
...
@@ -43,9 +40,6 @@ pod:
-
name
:
gcp-sa-release
mountPath
:
/mnt/secrets/gcp-sa-release
readOnly
:
true
-
name
:
gcp-sa-gitpod-helmchartregistry
mountPath
:
/mnt/secrets/gcp-sa-gitpod-helmchartregistry
readOnly
:
true
# - name: deploy-key
# mountPath: /mnt/secrets/deploy-key
# readOnly: true
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录