project := dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral branch := `git branch --show-current` commit := `git log -1 --format=%h` tag := ${branch}__${commit} # docker images orchestra_image := ${project}/orchestra:${tag} musician_image := ${project}/musician:${tag} docker_build: docker build -f docker/orchestra.Dockerfile -t ${orchestra_image} . docker build -f docker/musician.Dockerfile -t ${musician_image} . docker_publish: docker push ${orchestra_image} docker push ${musician_image} .PHONY: docker docker: $(MAKE) docker_build $(MAKE) docker_publish @printf "\nimage: ${orchestra_image}\n" @printf "\nimage: ${musician_image}\n" @printf "\ndocker images built and published\n"