dist: trusty
sudo: required
language: generic
services:
- docker
script:
- docker build -t wukong-build .

dist: xenial
sudo: required
language: generic
env:
  global:
  - COMMIT=${TRAVIS_COMMIT::6}
services:
- docker
script:
- docker build -t wukong .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker tag wukong gyrosworkshop/wukong:${COMMIT}
- docker push gyrosworkshop/wukong:${COMMIT}

Build and push docker image
Build and push docker image
