refactor(e2e): use consistent tag name when building images at the same time #852
+12
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tl;dr: this ensures that when you run
make e2e
, all Docker images are built with the same tag.Another try for #845 (thanks @pintohutch)
How this works
$(MAKE)
which calls and forksmake
without carrying variables over. This is fixed by usingexport
.make
has rules for variable expansion.=
and?=
are considered "recursively expansions" which you can think of as lazily evaluated.:=
is considered "simply expanded" and is evaluated at declaration time. This is what we want to ensure it's only evaluated once.e2e-only
target which does not rebuild all images. This needs to be conditional so I'll fix this in a separate PR.