Skip to content

Commit 54d0f19

Browse files
committed
更新 github actions 自动 build docker tag 为中国时区
1 parent 115be8e commit 54d0f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ jobs:
9393
9494
command="docker buildx build --provenance=false --platform linux/amd64,linux/arm64 --push . "
9595
for repo in ${repos[@]}; do
96-
command="$command -t $repo\:latest -t $repo\:$(date +%Y-%m-%d_%H-%M-%S)_$(git rev-parse --short HEAD)"
96+
command="$command -t $repo\:latest -t $repo\:$(TZ=Asia/Shanghai date +%Y-%m-%d_%H-%M-%S)_$(git rev-parse --short HEAD)"
9797
done
9898
eval $command

0 commit comments

Comments
 (0)