ci(docker): 设置时区为亚洲/上海

- 在获取当前日期步骤中添加了设置时区为亚洲/上海的命令
- 确保构建和推送镜像的时间戳使用北京时间
This commit is contained in:
zxb 2025-04-10 13:35:22 +08:00
parent b740c15dee
commit ea39c692de

View file

@ -31,7 +31,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Get current date - name: Get current date
id: 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 - name: Build and push xiaozhi-server
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with: