Commit 61a06e7e authored by Alberto Pascual's avatar Alberto Pascual
Browse files

makefiles updated

parent e467309d
Pipeline #428 failed with stages
in 58 seconds
export
NAME ?= $(shell basename $(CURDIR))
VERSION ?= $(shell git describe --tags --dirty 2>/dev/null)
VERSION ?= $(shell git describe --tags 2>/dev/null)
ifeq ($(VERSION),)
VERSION:=unknown
......
......@@ -4,14 +4,17 @@ IMAGENAME:=registry.cluster.gsi.dit.upm.es/sefarad/dashboard-somedi/gsicrawler
VERSIONFILE:=VERSION
include .makefiles/base.mk
include .makefiles/python.mk
#include .makefiles/python.mk
include .makefiles/k8s.mk
build-web: version Dockerfile-% ## Build a specific version (e.g. build-2.7)
docker build -t '$(IMAGEWTAG)-python$*' --cache-from $(IMAGENAMEWEB):python$* -f demo/Dockerfile-$* .;
build-web: ## Build a specific version (e.g. build-2.7)
docker build -t '$(IMAGENAMEWEB)' -f demo/Dockerfile demo/;
push-web: $(addprefix push-latest-,$(PYVERSIONS)) ## Push the "latest" tag to dockerhub
docker tag '$(IMAGEWTAG)-python$(PYMAIN)' '$(IMAGEWTAG)'
docker tag '$(IMAGEWTAG)-python$(PYMAIN)' '$(IMAGENAMEWEB)'
docker push '$(IMAGENAMEWEB):latest'
docker push '$(IMAGEWTAG)'
push-web: build-web ## Push the "latest" tag to dockerhub
docker push '$(IMAGENAMEWEB):$(VERSION)'
build-latest: ## Build a specific version (e.g. build-2.7)
docker build -t '$(IMAGENAME)' -f Dockerfile .;
push-latest: build-latest ## Push the "latest" tag to dockerhub
docker push '$(IMAGENAME):$(VERSION)'
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment