Skip to content
Snippets Groups Projects
Commit d0be7854 authored by CANALS Gerome's avatar CANALS Gerome
Browse files

build scripts

parent d9948aef
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#docker buildx create --name multibuild --driver=docker-container
if [ $# -eq 0 ]; then
echo "Usage: $0 tag"
exit 1
fi
if [ $# -eq 1 ]; then
echo "docker build -t canals/php:$1 ./$1/ "
docker build -t canals/php:$1 ./$1/
fi
if [ $# -eq 2 ]; then
echo "docker build -t canals/php:$1 -t canals/php:$2 ./$1/"
docker build -t canals/php:$1 -t canals/php:$2 ./$1/
fi
#!/bin/bash
#docker buildx create --name multibuild --driver=docker-container
if [ $# -eq 0 ]; then
echo "Usage: $0 tag"
exit 1
fi
if [ $# -eq 1 ]; then
echo "docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v8 -t canals/php:$1 ./$1/ --builder=multibuild --push"
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v8 -t canals/php:$1 ./$1/ --builder=multibuild --push
fi
if [ $# -eq 2 ]; then
echo "docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v8 -t canals/php:$1 -t canals/php:$2 ./$1/ --builder=multibuild --push"
docker buildx build --platform=linux/amd64,linux/arm64,linux/arm/v8 -t canals/php:$1 -t canals/php:$2 ./$1/ --builder=multibuild --push
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment