Skip to content

Commit fe323da

Browse files
caiyanzentao
authored andcommitted
Merge branch 'release/4.3' of Pangu/gitfox-community (#3320)
2 parents 56e8aec + 84933ca commit fe323da

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎Taskfile.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,20 @@ tasks:
271271
parallel: true
272272

273273
docker:push:
274-
desc: 构建多架构 Docker 镜像并推送至 hub.zentao.net
274+
desc: 构建多架构 Docker 镜像并推送至 hub.zentao.net(正式包传 FORMAL=true,tag 不带日期)
275275
deps: [cross-build]
276276
vars:
277277
IMAGE: 'hub.zentao.net/app/gitfox-community'
278278
DOCKER_TAG_DATE:
279279
sh: date '+%Y%m%d'
280280
TAG:
281-
sh: echo "{{.BUILD_RELEASE}}-{{.DOCKER_TAG_DATE}}" | tr '/' '-'
281+
sh: |
282+
FORMAL="{{default "false" .FORMAL}}"
283+
if [ "$FORMAL" = "true" ]; then
284+
echo "{{.BUILD_RELEASE}}" | tr '/' '-'
285+
else
286+
echo "{{.BUILD_RELEASE}}-{{.DOCKER_TAG_DATE}}" | tr '/' '-'
287+
fi
282288
PLATFORMS: 'linux/amd64,linux/arm64'
283289
DOCKERFILE: 'deploy/Dockerfile'
284290
BUILDER: 'multiarch'

0 commit comments

Comments
 (0)