- You are using GitFlow
- You want to deploy a new version of your software every time a commit is made to the develop branch
- You are using Octopack to package your application for deployment
Instructions
void Main() | |
{ | |
var input = "Hello #{Greeting | Upper} #{Greeting | Upper}, How do you like #{DayOfWeek | Lower}"; | |
var variables = new Dictionary<string, string>() | |
{ | |
{ "Greeting", "hello" }, | |
{ "DayOfWeek", "Wednesday" } | |
}; | |
echo off | |
:: download OpenSSL if you don't have it for the below | |
:: Conver the p7b into PEM format | |
openssl pkcs7 -in mydomain.p7b -print_certs -out mydomain.pem | |
:: Combine this with the crt server certificate and private key into a PFX | |
openssl pkcs12 -export -in mydomain.crt -inkey mydomain.key -certfile mydomain.pem -out mydomain.pfx |
Instructions
dotnet new mvc --auth None -f netcoreapp3.1 | |
dotnet build | |
dotnet publish | |
octo pack --Id=MyApp.Test --format=Zip --Version=1.0.0 --basePath=./bin/Debug/netcoreapp3.1/publish |
[assembly: OwinStartup(typeof(Startup))] | |
namespace Api | |
{ | |
public class Startup | |
{ | |
public void Configuration(IAppBuilder app) | |
{ | |
var config = new HttpConfiguration(); |
void Main() | |
{ | |
typeof(NonConforming).MustConformToOneOf(new PropertyConventionSpecification[] { | |
new PropertiesMustHavePrivateSettersConventionSpecification(), | |
new PropertiesMustHavePublicSettersConventionSpecification() | |
}); | |
} | |
public class NonConforming | |
{ |
The tooling for K8s on Windows has come a long way over the last couple of years and is starting to stabilise. Minikube 'just works' and you no longer need to fight it (stopping the cluster works now, yay!).
However the tooling has also become so prolific it tends to end up in various places on your machine nested inside other tools. So lets straighten that out.
Windows ends up with a mess of kubectl versions kicking around - VS 2019 has its own, Docker for Windows has its own, Azure Dev Spaces has its own, you may have downloaded the MSI, you may have installed it via Chocolatey.
Firstly - we will use the CommandLine utility to do our versioning - this lets us check the versioning behaviour locally before pushing, which can be super handy!
Install-Package GitVersion.CommandLine
Then, configure gitversion
.\packages\GitVersion.CommandLine.3.5.2\tools\GitVersion.exe init
Step 1 & 2 are no longer enough, as git will nag about irreversable conversions regardless of you asking it to convert things.
See This issue for an explanation.
Tl;Dr: git config --global core.safecrlf false
Step 1: