-
Notifications
You must be signed in to change notification settings - Fork 29
/
azure-pipelines.yml
42 lines (38 loc) · 1.22 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
parameters:
- name: clean
displayName: Checkout clean
type: boolean
default: false
values:
- false
- true
- name: docker_image_tag
displayName: Docker image tag
type: string
default: $(Build.BuildNumber)
name: $(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
trigger:
- integration
pool:
name: Default
stages:
- stage: Build
jobs:
- job: BuildJob
steps:
- checkout: self
clean: ${{ parameters.clean }}
submodules: recursive
- script: |
echo "Build ID: $(Build.BuildNumber)"
echo "Docker tag: ${{ parameters.docker_image_tag }}"
- script: ./scripts/deploy/deploy.sh
displayName: 'Run deploy script'
- task: Docker@2
inputs:
containerRegistry: 'ebu-docker-hub'
repository: 'ebutech/pi-list'
command: 'buildAndPush'
Dockerfile: 'release/server/Dockerfile'
buildContext: 'release/server'
tags: ${{ parameters.docker_image_tag }}