Skip to content

Commit

Permalink
FAB-10708 add docker-tag-stable target/recipe
Browse files Browse the repository at this point in the history
Change-Id: Id533381e8f93cb9d2becd009cd5002fca2216b4d
Signed-off-by: Christopher Ferris <[email protected]>
  • Loading branch information
christo4ferris committed Jul 5, 2018
1 parent 3436f45 commit a95aa6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
# use in the local machine.
# - docker-thirdparty - pulls thirdparty images (kafka,zookeeper,couchdb)
# - docker-tag-latest - re-tags the images made by 'make docker' with the :latest tag
# - docker-tag-stable - re-tags the images made by 'make docker' with the :stable tag
# - help-docs - generate the command reference docs

BASE_VERSION = 1.2.0
Expand Down Expand Up @@ -432,6 +433,12 @@ docker-tag-latest: $(IMAGES:%=%-docker-tag-latest)
$(eval TARGET = ${patsubst %-docker-tag-latest,%,${@}})
docker tag $(DOCKER_NS)/fabric-$(TARGET):$(DOCKER_TAG) $(DOCKER_NS)/fabric-$(TARGET):latest

docker-tag-stable: $(IMAGES:%=%-docker-tag-stable)

%-docker-tag-stable:
$(eval TARGET = ${patsubst %-docker-tag-stable,%,${@}})
docker tag $(DOCKER_NS)/fabric-$(TARGET):$(DOCKER_TAG) $(DOCKER_NS)/fabric-$(TARGET):stable

.PHONY: clean
clean: docker-clean unit-test-clean release-clean
-@rm -rf $(BUILD_DIR)
Expand Down

0 comments on commit a95aa6b

Please sign in to comment.