Extend default target to support recovery from broken minimal

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-08-30 14:20:10 +02:00
parent c2ca42b0a9
commit e226fb8c03
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,7 +1,10 @@
DOCKER_ORGANIZATION=luzifer DOCKER_ORGANIZATION=luzifer
DOCKER_IMAGE:=archlinux DOCKER_IMAGE:=archlinux
default: seed
default: docker-image_minimal default: docker-image_minimal
default: docker-image-test_latest
default: docker-push_latest
jenkins: docker-image_minimal jenkins: docker-image_minimal
jenkins: docker-image-test_latest jenkins: docker-image-test_latest
@ -47,9 +50,11 @@ docker-push_%:
docker push $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$* docker push $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$*
# Special build target to locally build the first minimal image # Special build target to locally build the first minimal image
seed: seed: test_archlinux
bash mkroots.sh bash mkroots.sh
docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):latest . docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):latest .
docker push $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE):$*
test_archlinux:
which pacstrap
.PHONY: rootfs docker-image docker-image-test ci-test docker-push .PHONY: rootfs docker-image docker-image-test ci-test docker-push