Skip to content

Commit

Permalink
build: ignore more artifacts during builds
Browse files Browse the repository at this point in the history
We use the build directory for output other than package builds, but
only the RPM packages need to be included in the build context that
Docker creates.

Switch to an allowlist approach so that we exclude new extensions by
default.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
  • Loading branch information
bcressey committed Mar 29, 2021
1 parent 513c8a2 commit 1803314
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .dockerignore
@@ -1,9 +1,7 @@
/.git
/.gomodcache
/build/**/*.img
/build/**/*.lz4
/build/**/*.xz
/build/**/*.tar
/build/**/*-debuginfo-*.rpm
/build/**/*-debugsource-*.rpm
/build/*
!/build/rpms/*.rpm
/build/rpms/*-debuginfo-*.rpm
/build/rpms/*-debugsource-*.rpm
**/target/*

0 comments on commit 1803314

Please sign in to comment.