Cake build container
Unfortunately, the official Docker images don’t have both runtimes installed. So it should be easy to make an image with both right? Well, it wasn’t as easy as I thought it would but I managed to do it! https://github.com/adamhathcock/cake-build
Uses a Ubuntu 16.04 base image with a .NET Core 1 runtime installed then .NET Core 2 SDK installed. This should be enough to build any .NET Core 2 project using Cake.
CircleCI is my build service of choice and it is Docker all the way!
Sample CircleCI 2.0 Config
version: 2 jobs: build: docker: - image: adamhathcock/cake-build:latest steps: - checkout - run: name: Build command: ./build.sh
Actually, this config isn’t that interesting 🙂