blob: 8ca71b78adbdf6751ca76a5401728f31e98a0f86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# the base of where these containers will appear
REGISTRY := registry.gitlab.com/xen-project/xen/tests-artifacts
CONTAINERS = $(subst .dockerfile,,$(wildcard */*.dockerfile))
help:
@echo "Containers to build and export tests artifacts."
@echo "To build one run 'make ARTIFACT/VERSION'. Available containers:"
@$(foreach file,$(sort $(CONTAINERS)),echo ${file};)
@echo "To push container builds, set the env var PUSH"
%: %.dockerfile ## Builds containers
docker build -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D)
@if [ ! -z $${PUSH+x} ]; then \
docker push $(REGISTRY)/$(@D):$(@F); \
fi
.PHONY: all
all: $(CONTAINERS)
|