Skip to content

Commit

Permalink
Merge pull request #2853 from jackfrancis/ci-build-k8s-print-git-diff
Browse files Browse the repository at this point in the history
ci: print git info when building from k8s source
  • Loading branch information
k8s-ci-robot authored Nov 30, 2022
2 parents a5e418e + 008ac60 commit 9e97aea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/ci-build-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ setup() {
# ref: https://github.com/kubernetes/kubernetes/blob/5491484aa91fd09a01a68042e7674bc24d42687a/build/lib/release.sh#L345-L346
export IMAGE_TAG="${KUBE_GIT_VERSION/+/_}"
echo "using IMAGE_TAG=${IMAGE_TAG}"
local git=(git --work-tree "${KUBE_ROOT}")
"${git[@]}" log -n 1
"${git[@]}" diff HEAD^ HEAD
}

main() {
Expand Down

0 comments on commit 9e97aea

Please sign in to comment.