mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-10 02:19:50 +00:00
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>
15 lines
484 B
Makefile
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
|