Merge pull request #9486 from thaJeztah/release_dockerignore
release: add .dockerignore to fix repeated builds
This commit is contained in:
commit
4a6a5af8d0
2
.github/workflows/release/Dockerfile
vendored
2
.github/workflows/release/Dockerfile
vendored
@ -56,7 +56,7 @@ RUN \
|
||||
# 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)
|
||||
test -z $GIT_STATUS_OUTPUT || (echo "repository contains uncommitted changes" && exit 1)
|
||||
|
||||
FROM scratch AS release
|
||||
COPY --from=target /go/src/github.com/containerd/containerd/releases/ /
|
||||
|
19
.github/workflows/release/Dockerfile.dockerignore
vendored
Normal file
19
.github/workflows/release/Dockerfile.dockerignore
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# Exclude files that may cause cache-busts. These are generally expected
|
||||
# to be in a global .gitignore, but still can cause the build-cache to
|
||||
# be invalidated.
|
||||
**/.DS_Store
|
||||
|
||||
# exclusions below are copied from .gitignore at the root of the repository
|
||||
# when updating, consider updating .gitignore accordingly.
|
||||
|
||||
/bin/
|
||||
/man/
|
||||
coverage.txt
|
||||
profile.out
|
||||
containerd.test
|
||||
_site/
|
||||
# Allow repeated builds without copying back previous builds
|
||||
releases/*.tar.gz
|
||||
releases/*.tar.gz.sha256sum
|
||||
_output/
|
||||
.vagrant/
|
Loading…
Reference in New Issue
Block a user