Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
nousxiong
parse-server
提交
b86e3bfb
P
parse-server
项目概览
nousxiong
/
parse-server
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
parse-server
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
b86e3bfb
编写于
9月 30, 2021
作者:
M
Manuel
提交者:
GitHub
9月 30, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ci: add manual docker image release (#7597)
上级
834ae366
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
57 addition
and
0 deletion
+57
-0
.github/workflows/release-manual-docker.yml
.github/workflows/release-manual-docker.yml
+57
-0
未找到文件。
.github/workflows/release-manual-docker.yml
0 → 100644
浏览文件 @
b86e3bfb
# Trigger this workflow only to manually create a Docker release; this should only be used
# in extraordinary circumstances, as Docker releases are normally created automatically as
# part of the automated release workflow.
name
:
release-manual-docker
on
:
workflow_dispatch
:
inputs
:
ref
:
default
:
'
'
description
:
'
Reference
(tag
/
SHA):'
env
:
REGISTRY
:
docker.io
IMAGE_NAME
:
parseplatform/parse-server
jobs
:
build
:
runs-on
:
ubuntu-18.04
permissions
:
contents
:
read
packages
:
write
steps
:
-
name
:
Determine branch name
id
:
branch
run
:
echo "::set-output name=branch_name::${GITHUB_REF#refs/*/}"
-
name
:
Checkout repository
uses
:
actions/checkout@v2
with
:
ref
:
${{ github.event.inputs.ref }}
-
name
:
Set up QEMU
id
:
qemu
uses
:
docker/setup-qemu-action@v1
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Log into Docker Hub
if
:
github.event_name != 'pull_request'
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Extract Docker metadata
id
:
meta
uses
:
docker/metadata-action@v3
with
:
images
:
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor
:
|
latest=${{ steps.branch.outputs.branch_name == 'master' && github.event.inputs.ref == '' }}
tags
:
|
type=semver,enable=true,pattern={{version}},value=${{ github.event.inputs.ref }}
type=raw,enable=${{ github.event.inputs.ref == '' }},value=latest
-
name
:
Build and push Docker image
uses
:
docker/build-push-action@v2
with
:
context
:
.
platforms
:
linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
push
:
${{ github.event_name != 'pull_request' }}
tags
:
${{ steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录