forked from dishameswania/pipelines-yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-xraypipelines.yml
74 lines (72 loc) · 1.88 KB
/
docker-xraypipelines.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
resources:
- name: dh_image
type: Image
configuration:
registry: dockerhub
imageName: nginx
imageTag: latest
- name: docker_image
type: Image
configuration:
registry: Art1
sourceRepository: docker
imageName: 35.244.19.217:8081/docker/busybox
imageTag: latest
- name: dockerbuild_repo
type: GitRepo
configuration:
path: balajils1/Sampleproject
gitProvider: balaji
- name: docker_build_info
type: BuildInfo
configuration:
sourceArtifactory: Art1
buildName: docker_test
buildNumber: 1
- name: files
type: FileSpec
configuration:
sourceArtifactory: Art1
pattern: generic-local/*
pipelines:
- name: docker_example
steps:
- name: build_docker
type: DockerBuild
configuration:
dockerFileLocation: .
dockerFileName: Dockerfile
dockerImageName: 35.244.19.217:8081/docker/balaji
dockerImageTag: $pipeline_name.$run_number
inputResources:
- name: dockerbuild_repo
#- name: docker_image
- name: files
- name: dh_image
integrations:
- name: Art1
- name: push_docker_image
type: DockerPush
configuration:
targetRepository: docker
integrations:
- name: Art1
inputSteps:
- name: build_docker
- name: publish_docker_build
type: PublishBuildInfo
configuration:
# integrations:
# - name: Art1
inputSteps:
- name: push_docker_image
outputResources:
- name: docker_build_info
- name: scan
type: XrayScan
configuration:
#inherits from bash
inputResources:
- name: docker_build_info
trigger: true
waitUntilFinish: true