提交 92626936 编写于 作者: L liqingping

ci: 1. trigger ci in pr

2. build latest image in tag ci
上级 317411db
......@@ -2,6 +2,7 @@ name: Go
on:
- push
- pull_request
jobs:
......
......@@ -34,7 +34,7 @@ jobs:
VERSION=nightly
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
fi
echo ::set-output name=tags::${TAGS}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册