Build _plot dockerfile

This commit is contained in:
Matthias 2020-09-20 14:58:27 +02:00
parent 129cbf5ef5
commit 85ab6e43ba

View File

@ -2,6 +2,7 @@
# Replace / with _ to create a valid tag # Replace / with _ to create a valid tag
TAG=$(echo "${BRANCH_NAME}" | sed -e "s/\//_/g") TAG=$(echo "${BRANCH_NAME}" | sed -e "s/\//_/g")
TAG_PLOT=${TAG}_plot
echo "Running for ${TAG}" echo "Running for ${TAG}"
# Add commit and commit_message to docker container # Add commit and commit_message to docker container
@ -16,6 +17,7 @@ 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
docker build --cache-from freqtrade:${TAG} -t freqtrade:${TAG_PLOT} -f docker/Dockerfile.plot .
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "failed building image" echo "failed building image"
@ -32,6 +34,7 @@ fi
# Tag image for upload # Tag image for upload
docker tag freqtrade:$TAG ${IMAGE_NAME}:$TAG 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