DEV Community

Ian Knighton
Ian Knighton

Posted on

Using Codeship with .Net Core

On a quest for free stickers, I gave Codeship a try this morning.

Maybe someday I'll do a full review of the application, but on a cursory glance it's pretty cool. Instead of being forced into working with yaml files everywhere, they provide an option where you can just throw in a set of commands and have them run.

With that platform, I was able to take a simple repo I had in GitHub and build it without having to think about containers.

Here's the script I used:

wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-2.2
dotnet build
Enter fullscreen mode Exit fullscreen mode

Simply put, this pulls in the .Net SDK and installs it so you can run commands like dotnet build and/or dotnet test. I can't help but imagine there are better ways to go about solving this problem, but to go from no pipeline to running in a couple of minutes was pretty cool.

I don't know how much of a desire there is to run .Net Core apps in Codeship right now, but I figured since I didn't see a solution right off it would be worth sharing.

Now I just need to figure out how to use it more so I can get those stickers...

Top comments (0)