-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·26 lines (19 loc) · 765 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·26 lines (19 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# ./build.sh 8.4 8.4 3.15
# ./build.sh 8.1 8.1 3.16
#8.1
dir=$1
#8.1
php_version=$2
#3.16
alpine_version=$3
current_dir=$(pwd)
#docker buildx build -t pgf/hello-arch --platform=linux/arm,linux/arm64,linux/amd64 . --push
for tag in base; do
cd "${current_dir}/${dir}/alpine/$tag"
echo $(pwd);
# docker_shell="docker build --build-arg ALPINE_VERSION=${alpine_version} -t tw2066/php:${php_version}-alpine-v${alpine_version}-${tag} ."
docker_shell="docker buildx build --build-arg ALPINE_VERSION=${alpine_version} -t tw2066/php:${php_version}-alpine-v${alpine_version}-${tag} --platform=linux/arm64,linux/amd64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6 . --push"
echo $docker_shell;
$($docker_shell)
done