-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipelines.yml
79 lines (67 loc) · 1.99 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
trigger:
branches:
include:
- master
paths:
exclude:
- infastructure/*
- terraform/*
- ecspresso
variables:
buildConfiguration: "Release"
jobs:
- job: Linux_WebApplicationBundle
pool:
vmImage: "ubuntu-20.04"
variables:
- group: "Docker Hub"
steps:
- task: UseDotNet@2
inputs:
version: "6.0.101"
- script: |
./build.sh --target=CI-Build
displayName: "Cake Build"
- task: CopyFiles@2
inputs:
contents: "publish/webapplication.zip"
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: WebApplicationBundle
- script: |
docker -v
apt-get purge docker-ce
curl https://get.docker.com | CHANNEL=test sh
sudo usermod -aG docker vsts
displayName: "Docker Install"
- script: |
docker -v
docker login -u $(dockerLogin) -p $(dockerPassword)
docker build -f docker/azuredevopskats-web-multi.dockerfile/Dockerfile -t stuartshay/azuredevopskats:devops .
docker push stuartshay/azuredevopskats:devops
displayName: "Docker Build & Push"
env:
COREHOST_TRACE: 0
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
- job: Windows_GitHubPages
pool:
vmImage: "windows-2019"
variables:
- group: "Git Hub"
steps:
- task: UseDotNet@2
inputs:
version: "6.0.101"
- powershell: .\build.ps1 --target=Generate-Docs
- task: GitHubPagesPublish@1
inputs:
docPath: 'docFx\_site\*'
githubusername: $(git_username)
githubemail: $(git_email)
githubaccesstoken: $(Nukeeper_github_token)
repositoryname: "AzureDevOpsKats"
branchname: "gh-pages"
commitmessage: "Automated Release"