1
0
Fork 0

Publish to docker hub on every release

pull/185/head
Felix Becker 2016-11-29 20:59:21 +01:00
parent db12f1667a
commit 58d8000aad
1 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,9 @@ language: php
php: php:
- '7.0' - '7.0'
services:
- docker
cache: cache:
directories: directories:
- vendor - vendor
@ -16,3 +19,9 @@ script:
after_success: after_success:
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)
- |
if [[ $TRAVIS_TAG == v* ]]; then
docker build -t felixfbecker/php-language-server:${TRAVIS_TAG:1} .
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker push felixfbecker/php-language-server:${TRAVIS_TAG:1}
fi