Merge pull request #6523 from fuweid/fix-6484

fix: .dockerignore make git working tree dirty
This commit is contained in:
Phil Estes 2022-02-07 16:17:17 -05:00 committed by GitHub
commit d1c3b751c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +0,0 @@
.github/
.dockerignore
releases/
bin/

View File

@ -50,5 +50,10 @@ RUN \
make release cri-release cri-cni-release && \
for f in $(find bin -executable -type f); do xx-verify $f; done
# check git working tree after build
RUN \
export GIT_STATUS_OUTPUT=$(git status --porcelain) && \
test -z $GIT_STATUS_OUTPUT || (echo $GIT_STATUS_OUTPUT && exit 1)
FROM scratch AS release
COPY --from=target /go/src/github.com/containerd/containerd/releases/ /