Skip to content

Commit

Permalink
Just copy from the image in ddist
Browse files Browse the repository at this point in the history
This ensures (with the help of Docker caching) that running
./dtest.sh && ./ddist.sh results in shipping the binary that was
actually tested.
  • Loading branch information
krallin committed Mar 1, 2015
1 parent 0b3e77d commit c354968
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./dist
3 changes: 1 addition & 2 deletions ddist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ NAME="${IMG}-dist"
BIN="tini"

docker build -t "${IMG}" .

docker run -it --name="${NAME}" --entrypoint="bash" --workdir="/tini" "${IMG}" "-c" "make clean && make"
docker run -it --name="${NAME}" --entrypoint="true" "${IMG}" true
docker cp "${NAME}:/tini/${BIN}" "${DIST_DIR}"
docker rm "${NAME}"

0 comments on commit c354968

Please sign in to comment.