Tag image before building next image
This commit is contained in:
parent
c14ff2bee1
commit
44e8184519
@ -17,8 +17,13 @@ else
|
|||||||
docker pull ${IMAGE_NAME}:${TAG}
|
docker pull ${IMAGE_NAME}:${TAG}
|
||||||
docker build --cache-from ${IMAGE_NAME}:${TAG} -t freqtrade:${TAG} .
|
docker build --cache-from ${IMAGE_NAME}:${TAG} -t freqtrade:${TAG} .
|
||||||
fi
|
fi
|
||||||
|
# Tag image for upload and next build step
|
||||||
|
docker tag freqtrade:$TAG ${IMAGE_NAME}:$TAG
|
||||||
|
|
||||||
docker build --cache-from freqtrade:${TAG} --build-arg sourceimage=${TAG} -t freqtrade:${TAG_PLOT} -f docker/Dockerfile.plot .
|
docker build --cache-from freqtrade:${TAG} --build-arg sourceimage=${TAG} -t freqtrade:${TAG_PLOT} -f docker/Dockerfile.plot .
|
||||||
|
|
||||||
|
docker tag freqtrade:$TAG_PLOT ${IMAGE_NAME}:$TAG_PLOT
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "failed building image"
|
echo "failed building image"
|
||||||
return 1
|
return 1
|
||||||
@ -32,9 +37,6 @@ if [ $? -ne 0 ]; then
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Tag image for upload
|
|
||||||
docker tag freqtrade:$TAG ${IMAGE_NAME}:$TAG
|
|
||||||
docker tag freqtrade:$TAG_PLOT ${IMAGE_NAME}:$TAG_PLOT
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "failed tagging image"
|
echo "failed tagging image"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user