File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ TAGS ?= 81 81-fpm 81-unit 82 82-fpm 82-unit
4
4
COMPOSER_HASH ?= 55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae
5
5
DRUSH_VERSION ?= 8.4.12
6
6
DOCKER_BUILDKIT ?= 1
7
- PLATFORM ?= linux/amd64
7
+ PLATFORM ?= linux/amd64,linux/arm64
8
8
9
9
.PHONY : all build push
10
10
14
14
@echo " Building images for tags: $( TAGS) "
15
15
set -e; for i in $( TAGS) ; do printf " \nBuilding $( NAME) :$$ i \n\n" ; cd php$$ i; \
16
16
DOCKER_BUILDKIT=$(DOCKER_BUILDKIT ) docker build -t $(NAME ) :$$ i \
17
- --platform $(PLATFORM ) \
18
17
--no-cache --progress=plain \
19
18
--build-arg COMPOSER_HASH=$(COMPOSER_HASH ) \
20
19
--build-arg DRUSH_VERSION=$(DRUSH_VERSION ) \
28
27
29
28
unit :
30
29
make -C unit-php-builder/dev build
30
+
31
+ buildx-push :
32
+ @echo " Building images for tags: $( TAGS) "
33
+ set -e; for i in $( TAGS) ; do printf " \nBuilding $( NAME) :$$ i \n\n" ; cd php$$ i; \
34
+ docker buildx build -t $(NAME ) :$$ i --push \
35
+ --platform $(PLATFORM ) \
36
+ --no-cache --progress=plain \
37
+ --build-arg COMPOSER_HASH=$(COMPOSER_HASH ) \
38
+ --build-arg DRUSH_VERSION=$(DRUSH_VERSION ) \
39
+ --build-arg BUILD_DATE=` date -u +" %Y-%m-%dT%H:%M:%SZ" ` \
40
+ --build-arg VCS_REF=` git rev-parse --short HEAD` . ; \
41
+ cd ..; done
You can’t perform that action at this time.
0 commit comments