fix: .dockerignore makes git working tree dirty
The .github/workflows/release/Dockerfile will use working dir as docker build context. But the .dockerignore will ignore the .github/release/... and cause dirty. We should remove it and verify git working tree after build. Fix: #6484 Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
parent
4f5ce5615a
commit
7e821fb618
@ -1,4 +0,0 @@
|
|||||||
.github/
|
|
||||||
.dockerignore
|
|
||||||
releases/
|
|
||||||
bin/
|
|
5
.github/workflows/release/Dockerfile
vendored
5
.github/workflows/release/Dockerfile
vendored
@ -50,5 +50,10 @@ RUN \
|
|||||||
make release cri-release cri-cni-release && \
|
make release cri-release cri-cni-release && \
|
||||||
for f in $(find bin -executable -type f); do xx-verify $f; done
|
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
|
FROM scratch AS release
|
||||||
COPY --from=target /go/src/github.com/containerd/containerd/releases/ /
|
COPY --from=target /go/src/github.com/containerd/containerd/releases/ /
|
||||||
|
Loading…
Reference in New Issue
Block a user