github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/queue_health/common.mk (about)

     1  # Please set IMG
     2  TAG = $(shell date +v%Y%m%d)
     3  
     4  all: push
     5  
     6  build:
     7  	docker build -t $(IMG):$(TAG) .
     8  	docker tag $(IMG):$(TAG) $(IMG):latest
     9  	@echo Built $(IMG):$(TAG) and tagged with latest
    10  
    11  push: build
    12  	gcloud docker -- push $(IMG):$(TAG)
    13  	gcloud docker -- push $(IMG):latest
    14  	@echo Pushed $(IMG) with :latest and :$(TAG) tags
    15