-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
21 lines (15 loc) · 916 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: init build
init: init-builder
init-builder:
docker buildx ls | awk '{print $1}' | grep builder &>/dev/null || docker buildx create --name builder --use && docker buildx use builder
build: build-7.2 build-7.3
#PLATFORM := linux/amd64,linux/arm64
PLATFORM := linux/amd64
# See also "hooks/build" and update the builds there too
# see https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
build-7.2:
docker buildx build --push --platform ${PLATFORM} --build-arg PHP_VERSION="7.2" --target base -t croneu/neos:7.2 .
docker buildx build --push --platform ${PLATFORM} --build-arg PHP_VERSION="7.2" --target behat -t croneu/neos:7.2-behat .
build-7.3:
docker buildx build --push --platform ${PLATFORM} --build-arg PHP_VERSION="7.3" --target base -t croneu/neos:7.3 .
docker buildx build --push --platform ${PLATFORM} --build-arg PHP_VERSION="7.3" --target behat -t croneu/neos:7.3-behat .