forked from BatelT/jfrog-pipelines-docker-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipelines.yml
80 lines (71 loc) · 2.39 KB
/
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
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
75
76
77
78
79
resources:
- name: dbp_repo
type: GitRepo
configuration:
gitProvider: my_github # <-- replace with your integration
path: jfrog/jfrog-pipelines-docker-sample # <-- replace with your repository name
branches:
include: master
- name: dbp_image
type: Image
configuration:
registry: art # <-- replace with your artifactory integration
sourceRepository: docker_local # <-- required if registry is Artifactory
imageName: kaloula.jfrog-pipelines.com/docker-local/dbp # < -- replace with your image path and name
imageTag: latest
autoPull: true
- name: dbp_build_info
type: BuildInfo
configuration:
sourceArtifactory: art
buildName: dbp_build
buildNumber: 1
- name: dbp_promoted_build_info
type: BuildInfo
configuration:
sourceArtifactory: art
buildName: dbp_build
buildNumber: 1
pipelines:
- name: pipeline_dbp
steps:
- name: docker_build
type: DockerBuild
configuration:
affinityGroup: dbp_group
dockerFileLocation: .
dockerFileName: Dockerfile
dockerImageName: kaloula.jfrog-pipelines.com/docker-local/dbp # replace with your image path and name
dockerImageTag: ${run_number}
inputResources:
- name: dbp_repo
integrations:
- name: art # <-- replace with your artifactory integration
- name: docker_push
type: DockerPush
configuration:
affinityGroup: dbp_group
targetRepository: docker-local
integrations:
- name: art # <-- replace with your artifactory integration
inputSteps:
- name: docker_build
outputResources:
- name: dbp_image
- name: publish_dbp_build
type: PublishBuildInfo
configuration:
inputSteps:
- name: docker_push
outputResources:
- name: dbp_build_info
- name: promote_dbp_build
type: PromoteBuild
configuration:
targetRepository: demo-pipelines
integrations:
- name: art
inputResources:
- name: dbp_build_info
outputResources:
- name: dbp_promoted_build_info