Merge pull request #1385 from freqtrade/feat/improve_travis

Add commit and message to container
This commit is contained in:
Matthias 2018-12-05 19:16:37 +01:00 committed by GitHub
commit 616ca0237e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,9 @@
TAG=$(echo "${TRAVIS_BRANCH}" | sed -e "s/\//_/") TAG=$(echo "${TRAVIS_BRANCH}" | sed -e "s/\//_/")
# Add commit and commit_message to docker container
echo "${TRAVIS_COMMIT} ${TRAVIS_COMMIT_MESSAGE}" > freqtrade_commit
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
echo "event ${TRAVIS_EVENT_TYPE}: full rebuild - skipping cache" echo "event ${TRAVIS_EVENT_TYPE}: full rebuild - skipping cache"
docker build -t freqtrade:${TAG} . docker build -t freqtrade:${TAG} .