Skip to content

Instantly share code, notes, and snippets.

@bazwilliams
Created April 22, 2016 20:54
Show Gist options
  • Save bazwilliams/124d549e22737eaa49eb94cd5c20c319 to your computer and use it in GitHub Desktop.
Save bazwilliams/124d549e22737eaa49eb94cd5c20c319 to your computer and use it in GitHub Desktop.
Example Travis-CI configuration yml for building .Net projects, testing and building Docker images for pushing to Dockerhub
language: csharp
cache:
directories:
- packages
sudo: required
services:
- docker
before_install:
- make nuget
before_script:
- docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD -e $DOCKER_HUB_EMAIL
script:
- make compile test
- make all-the-dockers
- make docker-push
after_success:
- make docker-tag
- make docker-push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment