Skip to content

Commit

Permalink
Ignore some things for docker
Browse files Browse the repository at this point in the history
Most importantly, we don't want or need .git/ added to the image.
  • Loading branch information
matthewd committed Apr 9, 2019
1 parent 671a0e8 commit f59ac44
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git
activerecord/debug.log
activerecord/test/config.yml
doc
node_modules
pkg
tmp
1 change: 1 addition & 0 deletions initial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ steps:
timeout_in_minutes: 5
NESTED
fi
[ -f .buildkite/.dockerignore ] && cp .buildkite/.dockerignore .dockerignore
plugins:
- artifacts#v1.2.0:
upload: ".buildkite/**/*"
Expand Down
2 changes: 1 addition & 1 deletion pipeline-generate
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ puts YAML.dump("steps" => [
"plugins" => [
{
ARTIFACTS_PLUGIN => {
"download" => [".buildkite/*", ".buildkite/**/*"],
"download" => [".dockerignore", ".buildkite/*", ".buildkite/**/*"],
},
},
{
Expand Down

0 comments on commit f59ac44

Please sign in to comment.