Skip to content

Instantly share code, notes, and snippets.

View acraven's full-sized avatar

Andrew Craven acraven

  • Epworth Consulting Ltd.
View GitHub Profile
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
@acraven
acraven / Gemfile
Created July 13, 2019 15:41
Gemfile to pull artifacts from Dependabot PR build
ruby "2.6.2"
source "https://rubygems.org"
gem "dependabot-omnibus", git: "https://github.com/acraven/dependabot-core", branch: "azure-author-details"
@acraven
acraven / update-snippet.rb
Created July 13, 2019 15:33
Credentials snippet
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
}]
@acraven
acraven / !azure-dependabot!
Last active July 16, 2019 22:12
Updating dependencies in Azure DevOps repos
See https://github.com/acraven/azure-dependabot for the whole repo
@acraven
acraven / azure-pipelines.ci.yml
Created March 11, 2019 18:00
Beautiful azure-pipelines.yml
name: 1.0$(Rev:.r)
trigger:
batch: false
branches:
include:
- master
paths:
exclude:
- README.md
@acraven
acraven / azure-pipelines.yml
Last active February 25, 2020 15:26
Hacked azure-pipelines.yml
# 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: