Skip to content

Commit 28934f4

Browse files
reneOhmSpectator
authored andcommitted
Makefile: Fix eve release string for push
The EVE_REL variable contains the release string to be used when pushing eve images. For a tagged release, e.g., 14.5.0, it translates to something like 14.5.0-kvm. However, it must also consider the platform variant, for instance: For nvidia-jp6: 14.5.0-nvidia-jp6-kvm Otherwise the final pushed image will overwrite any generic image already pushed to the registry. Signed-off-by: Renê de Souza Pinto <[email protected]> (cherry picked from commit 245571d)
1 parent 4878b35 commit 28934f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,16 +374,16 @@ ifeq ($(LINUXKIT_PKG_TARGET),push)
374374
# only builds from master branch are allowed to be called snapshots
375375
# everything else gets tagged with a branch name itself UNLESS
376376
# we're building off of a annotated tag
377-
EVE_REL_$(REPO_BRANCH)_$(REPO_TAG):=$(REPO_TAG)
377+
EVE_REL_$(REPO_BRANCH)_$(REPO_TAG):=$(if $(TAGPLAT),$(REPO_TAG)-$(TAGPLAT),$(REPO_TAG))
378378
EVE_REL_$(REPO_BRANCH)_snapshot:=$(REPO_BRANCH)
379-
EVE_REL_master_snapshot:=snapshot
379+
EVE_REL_master_snapshot:=$(if $(TAGPLAT),$(TAGPLAT)-snapshot,snapshot)
380380
EVE_REL:=$(EVE_REL_$(REPO_BRANCH)_$(REPO_TAG))
381381

382382
# the only time we rebuild everything from scratch is when we're building 'latest' release
383383
# in order to achieve that we have to force EVE_HASH to be the release version
384384
ifeq ($(shell [ "`git tag | grep -E '[0-9]*\.[0-9]*\.[0-9]*' | sort -t. -n -k1,1 -k2,2 -k3,3 | tail -1`" = $(REPO_TAG) ] && echo latest),latest)
385385
EVE_HASH:=$(REPO_TAG)
386-
EVE_REL:=latest
386+
EVE_REL:=$(if $(TAGPLAT),$(TAGPLAT)-latest,latest)
387387
endif
388388
endif
389389

0 commit comments

Comments
 (0)