From 54d0f19102d341fdd95990a6f6383ddc5604eef0 Mon Sep 17 00:00:00 2001 From: zhao jun <873019219@qq.com> Date: Mon, 30 Sep 2024 05:37:23 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20github=20actions=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=20build=20docker=20tag=20=E4=B8=BA=E4=B8=AD?= =?UTF-8?q?=E5=9B=BD=E6=97=B6=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a868a4a..79ffb4c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -93,6 +93,6 @@ jobs: command="docker buildx build --provenance=false --platform linux/amd64,linux/arm64 --push . " for repo in ${repos[@]}; do - command="$command -t $repo\:latest -t $repo\:$(date +%Y-%m-%d_%H-%M-%S)_$(git rev-parse --short HEAD)" + command="$command -t $repo\:latest -t $repo\:$(TZ=Asia/Shanghai date +%Y-%m-%d_%H-%M-%S)_$(git rev-parse --short HEAD)" done eval $command \ No newline at end of file