File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,14 +2,20 @@ NAME = php-apache
22TAG = $(shell basename $(shell pwd) )
33IMAGE_NAME := panubo/$(NAME )
44
5- .PHONY : help build push clean bash run
5+ .PHONY : help build buildarm buildamd push clean bash run
66
77help :
88 @printf " $$ (grep -hE '^\S+:.*##' $( MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\ x1b[36m\1\\ x1b[m:\2/' | column -c2 -t -s :)\n"
99
10- build : # # Builds docker image
10+ build : # # build image
1111 docker build --pull -t $(IMAGE_NAME ) :$(TAG ) .
1212
13+ buildarm : # # build image
14+ docker build --platform=linux/arm64 --pull -t $(IMAGE_NAME ) :$(TAG ) .
15+
16+ buildamd : # # build image
17+ docker build --platform=linux/amd64 --pull -t $(IMAGE_NAME ) :$(TAG ) .
18+
1319push : # # Push image to registry
1420 docker tag $(IMAGE_NAME ) :$(TAG ) docker.io/$(IMAGE_NAME ) :latest
1521 docker push $(IMAGE_NAME ) :$(TAG )
Original file line number Diff line number Diff line change @@ -2,14 +2,20 @@ NAME = php-apache
22TAG = $(shell basename $(shell pwd) )
33IMAGE_NAME := panubo/$(NAME )
44
5- .PHONY : help build push clean bash run
5+ .PHONY : help build buildarm buildamd push clean bash run
66
77help :
88 @printf " $$ (grep -hE '^\S+:.*##' $( MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\ x1b[36m\1\\ x1b[m:\2/' | column -c2 -t -s :)\n"
99
10- build : # # Builds docker image
10+ build : # # build image
1111 docker build --pull -t $(IMAGE_NAME ) :$(TAG ) .
1212
13+ buildarm : # # build image
14+ docker build --platform=linux/arm64 --pull -t $(IMAGE_NAME ) :$(TAG ) .
15+
16+ buildamd : # # build image
17+ docker build --platform=linux/amd64 --pull -t $(IMAGE_NAME ) :$(TAG ) .
18+
1319push : # # Push image to registry
1420 docker tag $(IMAGE_NAME ) :$(TAG ) docker.io/$(IMAGE_NAME ) :latest
1521 docker push $(IMAGE_NAME ) :$(TAG )
You can’t perform that action at this time.
0 commit comments