blob: 8ea11f8806219fd44cb6b969f88af2ce2b648212 [file] [log] [blame]
Zack Williams1e325b22019-07-24 17:52:57 -07001---
2# Github-specific docker image building + dockerhub publishing tasks
3
4- job-template:
5 id: docker-publish-github
6 name: 'docker-publish-github_{project}'
7 description: |
8 Created by {id} job-template from ci-management/jjb/docker-publish.yaml
9
10 properties:
11 - cord-infra-properties:
12 build-days-to-keep: '{build-days-to-keep}'
13 artifact-num-to-keep: '{artifact-num-to-keep}'
14 - github:
15 url: 'https://github.com/{github-organization}/{project}'
16 display-status: 'docker-publish'
17
Zack Williams1e325b22019-07-24 17:52:57 -070018 wrappers:
19 - lf-infra-wrappers:
20 build-timeout: '{build-timeout}'
21 jenkins-ssh-credential: '{jenkins-ssh-credential}'
22
23 parameters:
24 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070025 name: buildNode
You Wang8512b832020-03-25 14:47:56 -070026 default: '{build-node}'
Zack Williams1e325b22019-07-24 17:52:57 -070027 description: 'Name of the Jenkins node to run the job on'
28
29 - string:
30 name: gitUrl
31 default: 'https://github.com/{github-organization}/{project}'
32 description: 'URL to the git repo (on github)'
33
34 - string:
35 name: gitRef
36 default: 'master'
37 description: 'git ref to build (commit hash or tag)'
38
39 - string:
40 name: projectName
41 default: '{project}'
42 description: 'Name of the project in the Github Organization'
43
44 - string:
45 name: branchName
46 default: 'master'
47 description: 'Branch of the project - always master in the GitHub case'
48
49 - string:
50 name: dockerRepo
51 default: '{docker-repo}'
52 description: "Docker repository to push to ('opencord', 'xosproject', etc.)"
53
54 - string:
55 name: dockerRegistry
56 default: '{docker-registry}'
57 description: "Docker registry to push to (blank for DockerHub)"
58
59 # AWS CPU arch names: `x86_64` `arm64` (which don't align to vendor names... *sigh*)
60 - string:
61 name: dockerArchList
62 default: 'x86_64'
63 description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
64
Matteo Scandolo3aba73a2019-09-27 09:03:38 -070065 - string:
66 name: maintainers
67 default: '{maintainers}'
68 description: "The person that sould be notified if this job fails"
69
Jeremy Ronquillo0884cae2020-05-04 11:15:49 -070070 - string:
71 name: extraEnvironmentVars
72 default: '{extraEnvironmentVars}'
73 description: "Provide extra environment variables to the build"
74
Zack Williams1e325b22019-07-24 17:52:57 -070075 project-type: pipeline
76 concurrent: true
Jeremy Ronquillo0884cae2020-05-04 11:15:49 -070077 extraEnvironmentVars: ""
Zack Williams1e325b22019-07-24 17:52:57 -070078
79 dsl: !include-raw-escape: pipeline/docker-publish.groovy
Joey Armstrongaf679da2023-01-31 14:22:41 -050080
81# [EOF]