From ea39c692dec3bbcf0fc0636992103386f62410dd Mon Sep 17 00:00:00 2001 From: zxb Date: Thu, 10 Apr 2025 13:35:22 +0800 Subject: [PATCH] =?UTF-8?q?ci(docker):=20=E8=AE=BE=E7=BD=AE=E6=97=B6?= =?UTF-8?q?=E5=8C=BA=E4=B8=BA=E4=BA=9A=E6=B4=B2/=E4=B8=8A=E6=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在获取当前日期步骤中添加了设置时区为亚洲/上海的命令 - 确保构建和推送镜像的时间戳使用北京时间 --- .github/workflows/docker-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 42b2c154e..15bfac213 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -31,7 +31,9 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Get current date id: date - run: echo "date=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT + run: | + export TZ='Asia/Shanghai' + echo "date=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT - name: Build and push xiaozhi-server uses: docker/build-push-action@v6 with: