-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-piplines.yml
44 lines (37 loc) · 1.01 KB
/
azure-piplines.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
trigger:
- main
pr: none
schedules:
- cron: "0 0 * * 0" # Trigger update vulnerabilities cache every Sunday at midnight
displayName: Weekly build
branches:
include:
- main
resources:
- repo: self
variables:
repository: 'godeltech/owasp-dependency-checker'
currentDate: $[format('{0:yyyyMMdd}', pipeline.startTime)]
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Build
steps:
- task: gitversion/setup@0
displayName: Setup GitVersion
inputs:
versionSpec: '5.x'
- task: gitversion/execute@0
displayName: Execute GitVersion
- task: Docker@2
displayName: Build and Push an image
inputs:
containerRegistry: 'docker-hub'
repository: $(repository)
command: 'buildAndPush'
Dockerfile: './src/Dockerfile'
tags: |
$(Build.BuildNumber).$(currentDate)
latest