Browse Source

feature: take back build scripts for multiple platform

pull/341/head
winkidney 2 years ago
parent
commit
bda7246d30
1 changed files with 2 additions and 11 deletions
  1. +2
    -11
      docker/build_docker_multiple_platform.sh

+ 2
- 11
docker/build_docker_multiple_platform.sh View File

@@ -5,19 +5,10 @@ script_dir="$( dirname "${0}" )"
IMAGE_LATEST_TAG="latest" IMAGE_LATEST_TAG="latest"
IMAGE_VERSION_TAG=`git tag -l --sort=-creatordate | head -n 1 | sed "s/v//g"` 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 \ sudo docker buildx build \
--no-cache \ --no-cache \
--output=type=docker \
--platform linux/amd64 \
--push \
--platform linux/arm/v7,linux/arm64/v8,linux/amd64 \
-t getpinry/pinry:${IMAGE_LATEST_TAG} \ -t getpinry/pinry:${IMAGE_LATEST_TAG} \
-t getpinry/pinry:${IMAGE_VERSION_TAG} \ -t getpinry/pinry:${IMAGE_VERSION_TAG} \
"${script_dir}/../" \ "${script_dir}/../" \


Loading…
Cancel
Save