Skip to content

Commit

Permalink
更新 github actions 自动 build docker tag 为中国时区
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaojun1998 committed Sep 30, 2024
1 parent 115be8e commit 54d0f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 54d0f19

Please sign in to comment.