-
Notifications
You must be signed in to change notification settings - Fork 107
/
pipelines.yml
45 lines (42 loc) · 1.46 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
resources:
- name: dbp_repo
type: GitRepo
configuration:
gitProvider: github # replace with your integration
path: batelt/jfrog-pipelines-docker-sample # replace with your repository name
branches:
include: master
- name: dbp_image
type: Image
configuration:
registry: artifactory # replace with your artifactory integration
sourceRepository: docker # required if registry is Artifactory
imageName: batelt-docker.jfrog.io/docker/mydockerbase # replace with your image path and name
imageTag: latest
autoPull: true
pipelines:
- name: pipeline_dbp
steps:
- name: docker_build
type: DockerBuild
configuration:
affinityGroup: dbp_group
dockerFileLocation: .
dockerFileName: Dockerfile
dockerImageName: batelt-docker.jfrog.io/docker/mydockerbase # replace with your image path and name
dockerImageTag: ${run_number}
inputResources:
- name: dbp_repo
integrations:
- name: artifactory # replace with your artifactory integration
- name: docker_push
type: DockerPush
configuration:
affinityGroup: dbp_group
targetRepository: docker
integrations:
- name: artifactory # replace with your artifactory integration
inputSteps:
- name: docker_build
outputResources:
- name: dbp_image