Jakub Sokołowski 9702bd8679 add Jenkinsfile and improve docker image creation
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-27 14:06:39 +01:00

17 lines
331 B
Makefile

GIT_COMMIT = $(shell git rev-parse --short HEAD)
GIT_ROOT = $(shell git rev-parse --show-toplevel)
IMAGE_TAG ?= latest
IMAGE_NAME ?= statusteam/keycard-cli-ci:$(IMAGE_TAG)
build:
docker build \
--label "commit=$(GIT_COMMIT)" \
-t $(IMAGE_NAME) .
push: build
docker push $(IMAGE_NAME)
clean:
docker rmi -f $(IMAGE_NAME)