Skip to content

Instantly share code, notes, and snippets.

View appcoreopc's full-sized avatar

jeremy woo appcoreopc

  • New Zealand
View GitHub Profile
create table Company (
companyId int identity(1,1)
, companyName varchar(100)
, zipcode varchar(10)
, constraint PK_Company primary key (companyId)
)
GO
create table Person (
personId int identity(1,1)
<repositories>
<repository>
<id>MyRepoy</id>
<url>https://yourCustomPackage/_packaging/myrepoName/maven/v1</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
FROM node:13.6.0-alpine as builder
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build
jobs:
- job: BuildDockerImages
displayName: 'Building Docker Image'
dependsOn: VerifyDockerTagVersion
pool:
name: ${{ parameters.poolName }}
steps:
stages:
- stage: BuildApplication
displayName: 'Build Docker Application and Push'
condition: succeeded()
jobs:
- template: mybuildtemplate.yml
parameters:
dockerRepositoryName : $(WebApplication)
cloudCentralBaseImageRepository : $(dCentralBaseImageRepository)
Version 1
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.8" />
</ItemGroup>
Simple example
################################################################
parameters:
doThing: false
steps:
- script: echo I did a thing
condition: and(succeeded(), eq('${{ parameters.doThing }}', true))
// simple example
var whatFruit = fruit switch {
Apple _ => "This is an apple",
_ => "This is not an apple"
};
// Property matching
public Fruit Fruit { get; set; }
FROM maven:3.6.3-jdk-13 AS build
### Copy all your source code
WORKDIR /app
COPY . .
# Copy settings file across
# Please do not ommit the settings.xml in your target path
FROM maven:3.6.0-jdk-11-slim AS build
WORKDIR /app
RUN echo "testdemo" > data.txt
# ENTRYPOINT [ "/usr/bin/watch", "-d", "." ]
ENTRYPOINT ["tail", "-f", "/dev/null"]