Files
linuxkit/alpine/base/debian-build-kernel/Makefile
Justin Cormack ba40e0a33b Use a random tag for Debian kernel build base
To store all the old images they need a different tag, so use a
random one.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-09-12 16:36:01 +01:00

15 lines
484 B
Makefile

# no easy hashing scheme for Debian, will switch to Alpine soon so temporarily use sha256
.PHONY: push
BASE=debian:jessie
IMAGE=debian-build-kernel
TAG := $(shell cat /dev/urandom | od -N6 -t x2 | head -n1 | cut -b9- | sed 's/ //g')
push:
docker pull $(BASE)
tar cf - Dockerfile | docker build --no-cache -t mobylinux/$(IMAGE):$(TAG) -
docker tag mobylinux/$(IMAGE):$(TAG) mobylinux/$(IMAGE):latest
docker push mobylinux/$(IMAGE):$(TAG)
docker push mobylinux/$(IMAGE):latest