This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Include branch name to prevent PR builds consuming version numbers from master builds | |
name: $(Build.SourceBranchName)-1.0$(Rev:.r) | |
trigger: | |
batch: false | |
branches: | |
include: | |
- master | |
paths: | |
exclude: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 1.0$(Rev:.r) | |
trigger: | |
batch: false | |
branches: | |
include: | |
- master | |
paths: | |
exclude: | |
- README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See https://github.com/acraven/azure-dependabot for the whole repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
credentials = [{ | |
"type" => "git_source", | |
"host" => "dev.azure.com", | |
"username" => "", | |
"password" => "YOUR_AZURE_DEVOPS_PAT" | |
},{ | |
"type" => "nuget_feed", | |
"url" => "https://pkgs.dev.azure.com/YOUR_ORG_NAME/_packaging/YOUR_FEED_NAME/nuget/v3/index.json", | |
"token" => ":YOUR_AZURE_DEVOPS_PAT" # Don't forget the colon | |
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby "2.6.2" | |
source "https://rubygems.org" | |
gem "dependabot-omnibus", git: "https://github.com/acraven/dependabot-core", branch: "azure-author-details" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build | |
WORKDIR /build | |
ARG version=0.0.0 | |
COPY ./Microservice/Microservice.csproj ./Microservice/Microservice.csproj | |
COPY ./Microservice.Tests/Microservice.Tests.csproj ./Microservice.Tests/Microservice.Tests.csproj | |
RUN dotnet restore ./Microservice/Microservice.csproj | |
RUN dotnet restore ./Microservice.Tests/Microservice.Tests.csproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose -f docker-compose.build.yaml build --no-cache --parallel | |
if ($? -eq $false) { | |
exit | |
} | |
docker-compose -f docker-compose.build.yaml up --renew-anon-volumes --abort-on-container-exit outside-in.tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
app: | |
build: | |
context: app | |
args: | |
version: 0.0.0 | |
environment: | |
- KESTREL__ENDPOINTS__HTTP__URL=http://*:5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build | |
WORKDIR /build | |
COPY ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj | |
RUN dotnet restore ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj | |
COPY . . | |
RUN dotnet build --no-incremental -c Release ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir microservice-outsidein-tests | |
cd microservice-outsidein-tests | |
dotnet new webapi -n Microservice -o app\Microservice | |
dotnet new nunit -n Microservice.Tests -o app\Microservice.Tests | |
dotnet new nunit -n Microservice.OutsideIn.Tests -o outside-in.tests\Microservice.OutsideIn.Tests | |
dotnet new sln | |
dotnet sln add .\app\Microservice\Microservice.csproj .\app\Microservice.Tests\Microservice.Tests.csproj .\outside-in.tests\Microservice.OutsideIn.Tests\Microservice.OutsideIn.Tests.csproj |
OlderNewer