forked from Misioslav/expressvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpressbuild.sh
20 lines (20 loc) · 2.33 KB
/
expressbuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
echo "### [BULDING ARM64 $1 VERSION - HUB.DOCKER.COM] ###"
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bullseye --build-arg PLATFORM=armhf --platform linux/arm64 -t $2/expressvpn:$1-arm64-bullseye --push .
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bookworm --build-arg PLATFORM=armhf --platform linux/arm64 -t $2/expressvpn:$1-arm64 --push .
echo "### [BULDING ARM64 LATEST VERSION - HUB.DOCKER.COM] ###"
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bullseye --build-arg PLATFORM=armhf --platform linux/arm64 -t $2/expressvpn:latest-arm64-bullseye --push .
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bookworm --build-arg PLATFORM=armhf --platform linux/arm64 -t $2/expressvpn:latest-arm64 --push .
echo "### [BULDING ARMHF $1 VERSION - HUB.DOCKER.COM] ###"
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bullseye --build-arg PLATFORM=armhf --platform linux/arm/v7 -t $2/expressvpn:$1-armhf-bullseye --push .
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bookworm --build-arg PLATFORM=armhf --platform linux/arm/v7 -t $2/expressvpn:$1-armhf --push .
echo "### [BULDING ARMHF LATEST VERSION - HUB.DOCKER.COM] ###"
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bullseye --build-arg PLATFORM=armhf --platform linux/arm/v7 -t $2/expressvpn:latest-armhf-bullseye --push .
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bookworm --build-arg PLATFORM=armhf --platform linux/arm/v7 -t $2/expressvpn:latest-armhf --push .
echo "### [BULDING AMD64 $1 VERSION - HUB.DOCKER.COM] ###"
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bullseye --build-arg PLATFORM=amd64 --platform linux/amd64 -t $2/expressvpn:$1-bullseye --push .
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bookworm --build-arg PLATFORM=amd64 --platform linux/amd64 -t $2/expressvpn:$1 --push .
echo "### [BULDING AMD64 LATEST VERSION - HUB.DOCKER.COM] ###"
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bullseye --build-arg PLATFORM=amd64 --platform linux/amd64 -t $2/expressvpn:latest-bullseye --push .
docker buildx build --build-arg NUM=$1 --build-arg DISTRIBUTION=bookworm --build-arg PLATFORM=amd64 --platform linux/amd64 -t $2/expressvpn:latest --push .
echo "### [CLEANING UP] ###"
docker system prune -a -f --volumes