Skip to content

Instantly share code, notes, and snippets.

View appcoreopc's full-sized avatar

jeremy woo appcoreopc

  • New Zealand
View GitHub Profile
data "azurerm_app_service_plan" "test" {
name = "devspapptest"
resource_group_name = "devrgapptest"
}
resource "azurerm_monitor_autoscale_setting" "test" {
name = "devspapptest-Autoscale-9680"
resource_group_name = "devrgapptest"
public class CustomerCifCleaner : OwinMiddleware
{
private const int HTTP_OK_Status = 200;
private const string JSONContentType = "application/json";
private const string AccessViolationExceptionConst = "AccessViolationException";
private const string TaskCanceledExceptionConst = "TaskCanceledException";
private const string ExceptionConst = "Exception";
private ILogger logger = null;
parameters:
stageDependency: []
stageName: ''
environment: ''
displayName: ''
deployment: ''
stages:
- stage: ${{parameters.stageName}}
dependsOn: ${{parameters.stageDependency}}
stageName: ''
stageDependency: ''
targetServerGroup: $(prodOnPremServer)
packageName: $(packageNameClientApp)
targetWebsiteName: $(appPoolNamePROD)
installationPath: $(installationPathClientPROD)
targetport: $(targetportClientApp)
targetWebsiteAppPool: $(appPoolNamePROD)
artifactFeed: $(artifactFeed)
hostBindingsDev: '{"bindings":[{"protocol":"http","ipAddress":"All Unassigned","port":"80","hostname":"payments-dev","sslThumbprint":"","sniFlag":false}]}'
parameters:
stageDependency: []
stageName: ''
isMasterOrReleasableBranch: $[or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))]
- task: DotNetCoreCLI@2
displayName: Push to DevOps feed
condition: and(succeeded(), eq(variables.isMasterOrReleasableBranch, true))
inputs:
command: "push"
nuGetFeedType: "internal" # Required when command == push. Options: internal, external
packagesToPush: "$(Build.ArtifactStagingDirectory)/*.nupkg" # Required when command == push
publishVstsFeed: "API" # Required when command == push && NuGetFeedType == internal
- task: PowerShell@2
displayName: 'Setting packageVersion environment to versioning value.'
inputs:
targetType: 'inline'
script: |
$packageVersion = '$(majorVersion).$(minorVersion).$(Build.BuildId)'
Write-Host "##vso[task.setvariable variable=PackageVersion;]$packageVersion"
- task: NuGetCommand@2
displayName: Package Api
- task: DotNetCoreCLI@2
displayName: Publish Api
inputs:
command: "publish"
publishWebProjects: "false"
versioningScheme: "byBuildNumber"
workingDirectory: "$(Build.SourcesDirectory)"
projects: "**/*.Api.csproj"
arguments: "--output $(Build.ArtifactStagingDirectory) --configuration $(buildConfiguration)"
zipAfterPublish: "false"
@appcoreopc
appcoreopc / git_log_current_branch.txt
Created September 10, 2020 18:06
git log for current branch
If you're on the branch
git log master..
Otherwise
git log master..<your branch name>