forked from telekom-mms/docker-management-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-devops.yml
38 lines (38 loc) · 1.05 KB
/
azure-devops.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
---
## azure-devops pipeline
...
- task: CmdLine@2
displayName: Build Dockerfile
inputs:
script: >
# get docker-management-container
git clone https://github.com/T-Systems-MMS/docker-management-container.git --depth 1
# get requirements
cp ansible/requirements.yml docker/service-mgmt/ansible_requirements
# generate Dockerfile
sh docker-management-container/render.sh docker/service-mgmt
- task: Docker@2
displayName: docker service-mgmt build
inputs:
containerRegistry: ...
repository: ...
command: build
Dockerfile: docker/service-mgmt/Dockerfile
buildContext: docker/service-mgmt
tags: >-
$(GitVersion.SemVer)
$(GitVersion.SemVer)-$(GitVersion.ShortSha)
$(Build.SourceBranchName)-latest
latest
- task: Docker@2
displayName: docker service-mgmt push
inputs:
containerRegistry: ...
repository: ...
command: push
tags: >-
$(GitVersion.SemVer)
$(GitVersion.SemVer)-$(GitVersion.ShortSha)
$(Build.SourceBranchName)-latest
latest
...