mirror of
https://github.com/NginxProxyManager/docker-testca.git
synced 2026-05-18 07:40:37 +00:00
6845b1af98
nginxproxymanager/testca Also remove armv7 from build as upstream image doesn't use that either
28 lines
571 B
Bash
Executable File
28 lines
571 B
Bash
Executable File
#!/bin/bash -e
|
||
|
||
BLUE='\E[1;34m'
|
||
CYAN='\E[1;36m'
|
||
YELLOW='\E[1;33m'
|
||
GREEN='\E[1;32m'
|
||
RESET='\E[0m'
|
||
|
||
echo -e "${BLUE}❯ ${CYAN}Building docker multiarch: ${YELLOW}${*}${RESET}"
|
||
|
||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
cd "${DIR}/.."
|
||
|
||
# Buildx Builder
|
||
docker buildx create --name "${BUILDX_NAME:-testca}" || echo
|
||
docker buildx use "${BUILDX_NAME:-testca}"
|
||
|
||
docker buildx build \
|
||
--platform linux/amd64,linux/arm64 \
|
||
--progress plain \
|
||
--pull \
|
||
$@ \
|
||
.
|
||
|
||
docker buildx rm "${BUILDX_NAME:-testca}"
|
||
|
||
echo -e "${BLUE}❯ ${GREEN}Multiarch build Complete${RESET}"
|