mirror of
https://github.com/pinry/pinry.git
synced 2026-01-22 15:22:40 +01:00
18 lines
372 B
Bash
Executable File
18 lines
372 B
Bash
Executable File
#!/bin/bash
|
|
|
|
script_dir="$( dirname "${0}" )"
|
|
|
|
IMAGE_TAG="latest"
|
|
|
|
# shellcheck disable=SC2199
|
|
if [[ "${@}" != "" ]];then
|
|
# shellcheck disable=SC2124
|
|
IMAGE_TAG="${@}"
|
|
fi
|
|
|
|
sudo docker buildx build \
|
|
--push \
|
|
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
|
|
-t getpinry/pinry:${IMAGE_TAG} "${script_dir}/../" \
|
|
-f "${script_dir}/../Dockerfile.autobuild"
|