Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Dapr
提交
e5672b24
D
Dapr
项目概览
int
/
Dapr
11 个月 前同步成功
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dapr
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
e5672b24
编写于
6月 26, 2019
作者:
L
Luke Kim
提交者:
GitHub
6月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add support for building and pushing Docker images (#64)
上级
e45ed8b3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
75 addition
and
9 deletion
+75
-9
azure-pipelines.yml
azure-pipelines.yml
+26
-2
build-and-push-image-template.yml
build-and-push-image-template.yml
+44
-0
github-release.yml
github-release.yml
+5
-7
未找到文件。
azure-pipelines.yml
浏览文件 @
e5672b24
...
...
@@ -2,6 +2,7 @@
trigger
:
-
master
-
release-*
variables
:
GOPATH
:
'
$(system.defaultWorkingDirectory)/gopath'
...
...
@@ -100,7 +101,6 @@ jobs:
condition
:
|
and
(
eq(variables['Build.SourceBranch'], 'refs/heads/master'),
eq(dependencies.build_darwin_amd64_action.result, 'Succeeded'),
eq(dependencies.build_darwin_amd64_assigner.result, 'Succeeded'),
eq(dependencies.build_darwin_amd64_controller.result, 'Succeeded'),
...
...
@@ -116,14 +116,38 @@ jobs:
)
steps
:
-
task
:
DownloadPipelineArtifact@2
displayName
:
'
Download
pipeline
artifacts
to
workspace'
inputs
:
buildType
:
'
current'
itemPattern
:
'
**/*.zip'
targetPath
:
'
$(Pipeline.Workspace)'
-
task
:
AzureFileCopy@3
displayName
:
'
Publish
archives
to
blob
storage'
inputs
:
SourcePath
:
'
$(Pipeline.Workspace)/drop'
azureSubscription
:
'
Actions
Releases'
Destination
:
'
AzureBlob'
storage
:
'
actionsreleases'
ContainerName
:
'
bin'
\ No newline at end of file
ContainerName
:
'
bin'
-
job
:
'
build_and_push_amd64_docker_image'
pool
:
vmImage
:
'
ubuntu-latest'
dependsOn
:
-
publish_edge_binaries
condition
:
|
eq(dependencies.publish_edge_binaries.result, 'Succeeded')
steps
:
-
template
:
'
build-and-push-image-template.yml'
parameters
:
targetArch
:
amd64
-
job
:
'
build_and_push_arm_docker_image'
pool
:
vmImage
:
'
ubuntu-latest'
dependsOn
:
-
publish_edge_binaries
condition
:
|
eq(dependencies.publish_edge_binaries.result, 'Succeeded')
steps
:
-
template
:
'
build-and-push-image-template.yml'
parameters
:
targetArch
:
arm
\ No newline at end of file
build-and-push-image-template.yml
0 → 100644
浏览文件 @
e5672b24
# actionscore/actions build and push image template
parameters
:
targetArch
:
'
amd64'
steps
:
-
task
:
DownloadPipelineArtifact@2
displayName
:
'
Download
pipeline
artifacts
to
workspace'
inputs
:
buildType
:
'
current'
itemPattern
:
'
**/*_linux_${{
parameters.targetArch
}}.zip'
targetPath
:
'
$(Pipeline.Workspace)'
-
task
:
CopyFiles@2
displayName
:
'
Copy
Dockerfile
to
workspace'
inputs
:
SourceFolder
:
'
$(Build.SourcesDirectory)'
Contents
:
'
Dockerfile'
TargetFolder
:
'
$(Pipeline.Workspace)'
OverWrite
:
true
flattenFolders
:
true
-
task
:
ExtractFiles@1
displayName
:
'
Extract
linux
${{
parameters.targetArch
}}
binaries'
inputs
:
archiveFilePatterns
:
'
$(Pipeline.Workspace)/drop/*_linux_${{
parameters.targetArch
}}.zip'
destinationFolder
:
'
$(Pipeline.Workspace)/dist'
cleanDestinationFolder
:
false
-
task
:
Docker@2
displayName
:
'
Build
and
push
${{
parameters.targetArch
}}
Docker
image'
condition
:
eq('${{ parameters.targetArch }}', 'amd64')
inputs
:
containerRegistry
:
'
ACR
Actions
Core'
repository
:
'
actions'
command
:
'
buildAndPush'
Dockerfile
:
'
$(Pipeline.Workspace)/Dockerfile'
tags
:
'
latest'
-
task
:
Docker@2
displayName
:
'
Build
and
push
${{
parameters.targetArch
}}
Docker
image'
condition
:
ne('${{ parameters.targetArch }}', 'amd64')
inputs
:
containerRegistry
:
'
ACR
Actions
Core'
repository
:
'
actions'
command
:
'
buildAndPush'
Dockerfile
:
'
$(Pipeline.Workspace)/Dockerfile'
tags
:
'
latest-${{
parameters.targetArch
}}'
\ No newline at end of file
github-release.yml
浏览文件 @
e5672b24
# actionscore/actions github release pipeline
variables
:
ReleaseIteration
:
'
'
ReleaseVersion
:
'
'
ReleaseTitle
:
'
Actions
Runtime
$(ReleaseVersion)
Release'
ReleaseTitle
:
'
Actions
Runtime
$(REL_VERSION)
Release'
pool
:
vmImage
:
'
macOS-latest'
...
...
@@ -17,17 +15,17 @@ steps:
specificBuildWithTriggering
:
true
buildVersionToDownload
:
'
latest'
artifactName
:
'
drop'
itemPattern
:
'
**/
.zip'
itemPattern
:
'
drop/*
.zip'
targetPath
:
'
$(Pipeline.Workspace)'
-
task
:
GitHubRelease@0
inputs
:
gitHubConnection
:
'
GitHub'
repositoryName
:
'
$(Build.Repository.Name)'
action
:
'
create'
target
:
'
$(R
eleaseVersion
)'
target
:
'
$(R
EL_VERSION
)'
tagSource
:
'
manual'
tag
:
'
$(R
eleaseIteration
)'
tag
:
'
$(R
EL_ITERATION
)'
title
:
'
$(ReleaseTitle)'
assets
:
$(Pipeline.Workspace)
releaseNotesFile
:
'
$(ReleaseNotesFilePath)
'
releaseNotesFile
:
'
docs/release_notes/v$(REL_VERSION).md
'
isPreRelease
:
true
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录