mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 19:05:37 +00:00
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>
This commit is contained in:
parent
145dead110
commit
955aad6276
@ -4,7 +4,11 @@
|
||||
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):latest -
|
||||
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
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM mobylinux/debian-build-kernel@sha256:412d36481df6123efc9a5a51656e13164f8178d11d682c63de8de82d43abd0d2
|
||||
FROM mobylinux/debian-build-kernel:a009a11bf0ad
|
||||
|
||||
ARG KERNEL_VERSION=4.4.20
|
||||
ARG DEBUG=0
|
||||
|
Loading…
Reference in New Issue
Block a user