mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Use docker-manifest to build multiarch images
This commit is contained in:
parent
4617967e14
commit
8658be004e
|
@ -3,7 +3,9 @@
|
|||
# The below assumes a correctly setup docker buildx environment
|
||||
|
||||
# Replace / with _ to create a valid tag
|
||||
TAG=$(echo "${BRANCH_NAME}" | sed -e "s/\//_/g")
|
||||
TAG_ORIG=$(echo "${BRANCH_NAME}" | sed -e "s/\//_/g")
|
||||
TAG="${TAG_ORIG}_pi"
|
||||
|
||||
PI_PLATFORM="linux/arm/v7"
|
||||
echo "Running for ${TAG}"
|
||||
CACHE_TAG=freqtradeorg/freqtrade_cache:${TAG}_cache
|
||||
|
@ -30,6 +32,13 @@ else
|
|||
-t ${IMAGE_NAME}:${TAG} --push .
|
||||
fi
|
||||
|
||||
docker images
|
||||
|
||||
docker manifest create freqtradeorg/freqtrade:${TAG}_multi ${IMAGE_NAME}:${TAG_ORIG} ${IMAGE_NAME}:${TAG}
|
||||
docker manifest push freqtradeorg/freqtrade:${TAG}_multi
|
||||
|
||||
docker images
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed building image"
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user