mirror of
https://github.com/icodex/docker-goedge.git
synced 2026-03-13 21:41:37 -05:00
18 lines
460 B
Bash
18 lines
460 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
VERSION="1.3.3"
|
||
|
|
case "$1" in
|
||
|
|
"admin"|"node")
|
||
|
|
RUN_TYPE=${1}
|
||
|
|
;;
|
||
|
|
*)
|
||
|
|
echo "unknown type: ${1}"
|
||
|
|
exit
|
||
|
|
;;
|
||
|
|
esac
|
||
|
|
|
||
|
|
docker buildx create --use --platform=linux/arm64,linux/amd64 --name multi-platform-builder
|
||
|
|
docker buildx inspect --bootstrap
|
||
|
|
|
||
|
|
docker buildx build -f Dockerfile.${RUN_TYPE} -t icodex/edge-${RUN_TYPE}:${VERSION} --build-arg VERSION=${VERSION} --platform=linux/arm64,linux/amd64 . --push
|