feature: try to fix docker run commands

This commit is contained in:
winkidney
2022-05-04 21:12:51 +08:00
parent c2e2e75453
commit 0040d47b1e
5 changed files with 17 additions and 8 deletions

View File

@@ -5,9 +5,18 @@ script_dir="$( dirname "${0}" )"
IMAGE_LATEST_TAG="latest"
IMAGE_VERSION_TAG=`git tag -l --sort=-creatordate | head -n 1 | sed "s/v//g"`
#sudo docker buildx build \
# --no-cache \
# --push \
# --platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
# -t getpinry/pinry:${IMAGE_LATEST_TAG} \
# -t getpinry/pinry:${IMAGE_VERSION_TAG} \
# "${script_dir}/../" \
# -f "${script_dir}/../Dockerfile.autobuild"
sudo docker buildx build \
--push \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
--output=type=docker \
--platform linux/amd64 \
-t getpinry/pinry:${IMAGE_LATEST_TAG} \
-t getpinry/pinry:${IMAGE_VERSION_TAG} \
"${script_dir}/../" \