remove buildx script

This commit is contained in:
John Bowdre 2022-01-05 15:30:24 -06:00
parent 0e3563f984
commit 614d0acdb8

View file

@ -1,22 +0,0 @@
#!/bin/sh
DOCKER_REPO='mc303/phpipam-agent:latest'
BUIILDX_REPO='buildphpipamagent'
# env DOCKER_BUILDKIT=1 docker build --no-cache -t $DOCKER_REPO .
#create platform buildx env
echo "docker run --rm --privileged multiarch/qemu-user-static --reset -p yes"
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
echo "docker buildx create --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --name $BUIILDX_REPO"
docker buildx create --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --name $BUIILDX_REPO
echo "docker buildx use $BUIILDX_REPO"
docker buildx use $BUIILDX_REPO
# build platforms
echo "docker buildx build --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 -t $DOCKER_REPO --push ."
docker buildx build --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 -t $DOCKER_REPO --push .
# remove build env
echo "docker buildx rm $BUIILDX_REPO"
docker buildx rm $BUIILDX_REPO