-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
40 lines (35 loc) · 941 Bytes
/
azure-pipelines.yml
File metadata and controls
40 lines (35 loc) · 941 Bytes
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
trigger:
- main
pr: none
resources:
- repo: self
pool:
vmImage: ubuntu-latest
variables:
repository: 'godeltech/codereview.file-converter'
foldername: 'CodeReview.FileConverter'
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Build
steps:
- task: gitversion/setup@0
displayName: Setup GitVersion
inputs:
versionSpec: '5.x'
- script: pwd && ls
- task: gitversion/execute@0
displayName: Execute GitVersion
- task: Docker@2
displayName: Build and Push an image
inputs:
buildContext: './src/'
containerRegistry: 'docker-hub'
repository: $(repository)
command: 'buildAndPush'
Dockerfile: './src/$(foldername)/Dockerfile'
tags: |
$(Build.BuildNumber)
latest