Skip to content

Commit

Permalink
Merge pull request #33 from dokku-community/dpkg-cache-busting
Browse files Browse the repository at this point in the history
fix: always bust cache when using a dpkg-packages file
  • Loading branch information
josegonzalez authored Aug 14, 2019
2 parents eab3db9 + 3f0103c commit c3cc120
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ The order of operations is:

Utilizing the above files, the base build image will be extended for further use in the build process. If an already extended app image that is compatible with the desired changes is found, then the above will be skipped in favor of using the pre-existing image.

Note that specifying packages within a `dpkg-packages` file will always bust the cache, as there is no way for the plugin to know if the files have changed between deploys.

### `apt-env`

A file that can contain environment variables. Note that this is sourced, and should not contain arbitrary code.
Expand Down
3 changes: 3 additions & 0 deletions pre-build-buildpack
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ hook-apt-pre-build-buildpack() {
INJECT_PACKAGES=true
local file_contents=$(<$file)
CONTENT="${CONTENT}\n${file}\n${file_contents}"
if [[ "$file" == "dpkg-packages" ]]; then
CONTENT="${CONTENT}$(date +%s)"
fi
fi
done

Expand Down

0 comments on commit c3cc120

Please sign in to comment.