Skip to content

Commit

Permalink
Tag docker images with release (hyperledger#4460)
Browse files Browse the repository at this point in the history
When calling "make docker", tag the images with the
Fabric version and Fabric two-digit version number.
This will ensure that the correct ccenv and baseos
images can be found when building chaincode images.

Signed-off-by: David Enyeart <[email protected]>
  • Loading branch information
denyeart authored Oct 3, 2023
1 parent 745b96c commit b8ce6d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ $(BUILD_DIR)/images/%/$(DUMMY):
--build-arg TARGETARCH=$(ARCH) \
--build-arg TARGETOS=linux \
$(BUILD_ARGS) \
-t $(DOCKER_NS)/fabric-$* ./$(BUILD_CONTEXT)
-t $(DOCKER_NS)/fabric-$* \
-t $(DOCKER_NS)/fabric-$*:$(FABRIC_VER) \
-t $(DOCKER_NS)/fabric-$*:$(TWO_DIGIT_VERSION) \
./$(BUILD_CONTEXT)

# builds release packages for the host platform
.PHONY: release
Expand Down

0 comments on commit b8ce6d0

Please sign in to comment.