build/docker: CI: no tag reuse on env var change 57/22757/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 4 Oct 2016 15:26:57 +0000 (17:26 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 6 Oct 2016 20:29:15 +0000 (20:29 +0000)
commit7aacec4fe6941e180fe1b89100c7bef3f44a6415
tree02cb512faaf4dd455f2a02458f22e219a6b64104
parent36b33da56ba61efd1f8550d1996ed86a809bb323
build/docker: CI: no tag reuse on env var change

The previous change adding support for OPNFV build tag reuse
added the get/put-cache functionality to `build/docker` just
for detecting env var changes between tag creation and current build.

Obviously, when building outside CI, it is up to the end user to
force a docker rebuild when env vars change (this was the behavior
before the tag reuse support too).

An alternative approach would be removing get/put-cache completely,
if we consider the env vars (http proxy related) never change for
CI cached builds (seems to be true, worst case we wait 1 day for
the tag to expire when it happens).

This change just fixes the original intended behavior in tag reuse.

JIRA: FUEL-204

Change-Id: I14666994bc334012a5198a64a4a24cd4962e4bd6
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 1c7eb680b34fdcd83b92c43a4c78db3c54bf567b)
build/docker/Makefile