mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
ci(docker): 设置时区为亚洲/上海
- 在获取当前日期步骤中添加了设置时区为亚洲/上海的命令 - 确保构建和推送镜像的时间戳使用北京时间
This commit is contained in:
parent
b740c15dee
commit
ea39c692de
1 changed files with 3 additions and 1 deletions
4
.github/workflows/docker-image.yml
vendored
4
.github/workflows/docker-image.yml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue