-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 774 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DATE ?= $(shell date +%Y%m%d)
DOCKER ?= docker
REPO ?= shenki/openbmc-qemu
image:
@$(DOCKER) build -t $(REPO):latest .
release:
@$(DOCKER) build -t $(REPO):$(DATE) -t $(REPO):latest .
check:
$(DOCKER) run --rm -ti $(REPO):latest qemu-system-arm --version
deploy:
@REPO=$(REPO) DATE=$(DATE) bash deploy.sh
help:
@echo
@echo "Possible targets:"
@echo " image: Builds the image, tagged as the latest."
@echo " release: Build the image, tagged as the latest and by date."
@echo " check: Does a test build."
@echo " deploy: Pushes the image to Docker Hub (release should be run when deploying)."
@echo " DOCKER_USERNAME and DOCKER_PASSWORD should be exported with the appropriate values when running this target."