Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | jenkins: |
| 3 | client: |
Jakub Josef | 0845aa8 | 2017-04-18 14:53:39 +0200 | [diff] [blame] | 4 | view: |
| 5 | Docker: |
| 6 | enabled: true |
| 7 | type: ListView |
Jakub Josef | 69a72b9 | 2017-04-27 18:03:45 +0200 | [diff] [blame] | 8 | include_regex: ".*docker.*" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 9 | job_template: |
| 10 | docker-build-image: |
| 11 | name: docker-build-image-{{name}}-{{branch}} |
| 12 | jobs: |
| 13 | - name: gerrit |
| 14 | branch: "2.12.7" |
| 15 | tags: "2.12.7" |
| 16 | dockerfile: "Dockerfile" |
| 17 | - name: gerrit |
| 18 | branch: "2.13.6" |
| 19 | tags: "2.13.6 latest" |
| 20 | dockerfile: "Dockerfile" |
| 21 | - name: jenkins |
| 22 | branch: "2.32.3" |
| 23 | tags: "2.32" |
| 24 | dockerfile: "Dockerfile" |
| 25 | - name: jenkins |
Filip Pytloun | fbfbddf | 2017-08-16 21:49:42 +0200 | [diff] [blame] | 26 | branch: "2.73" |
| 27 | tags: "2.73 latest" |
Ruslan Kamaldinov | 36fd848 | 2017-07-19 18:15:28 +0400 | [diff] [blame] | 28 | dockerfile: "Dockerfile" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 29 | - name: phpldapadmin |
| 30 | branch: "master" |
Jakub Josef | fbb3ab9 | 2017-04-13 15:16:52 +0200 | [diff] [blame] | 31 | tags: "latest" |
| 32 | dockerfile: "image/Dockerfile" |
| 33 | - name: openldap |
| 34 | branch: "master" |
| 35 | tags: "latest" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 36 | dockerfile: "image/Dockerfile" |
Filip Pytloun | 23567e6 | 2017-04-25 17:52:29 +0200 | [diff] [blame] | 37 | - name: mysql |
| 38 | branch: "master" |
| 39 | tags: "5.6 latest" |
| 40 | dockerfile: "5.6/Dockerfile" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 41 | template: |
| 42 | discard: |
| 43 | build: |
| 44 | keep_num: 5 |
| 45 | artifact: |
| 46 | keep_num: 5 |
| 47 | type: workflow-scm |
| 48 | concurrent: true |
| 49 | scm: |
| 50 | type: git |
| 51 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 52 | credentials: "gerrit" |
| 53 | script: docker-build-image-pipeline.groovy |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 54 | trigger: |
| 55 | gerrit: |
| 56 | project: |
| 57 | "mk/docker-{{name}}": |
| 58 | branches: |
Jakub Josef | e098f15 | 2017-04-06 14:34:18 +0200 | [diff] [blame] | 59 | - "{{branch}}" |
Jakub Josef | 4762701 | 2017-04-05 16:16:24 +0200 | [diff] [blame] | 60 | event: |
Jakub Josef | 1bcaeb0 | 2017-04-07 12:56:49 +0200 | [diff] [blame] | 61 | ref: |
| 62 | - updated: {} |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 63 | param: |
| 64 | IMAGE_NAME: |
| 65 | type: string |
| 66 | default: "tcpcloud/{{name}}" |
| 67 | IMAGE_GIT_URL: |
| 68 | type: string |
Jakub Josef | a7b911c | 2017-04-05 15:09:01 +0200 | [diff] [blame] | 69 | default: "${_param:jenkins_gerrit_url}/mk/docker-{{name}}" |
Jakub Josef | ceb3b65 | 2017-04-04 16:10:05 +0200 | [diff] [blame] | 70 | IMAGE_BRANCH: |
| 71 | type: string |
| 72 | default: "{{branch}}" |
| 73 | IMAGE_CREDENTIALS_ID: |
| 74 | type: string |
| 75 | default: "gerrit" |
| 76 | IMAGE_TAGS: |
| 77 | type: string |
| 78 | default: "{{tags}}" |
| 79 | DOCKERFILE_PATH: |
| 80 | type: string |
| 81 | default: "{{dockerfile}}" |
| 82 | REGISTRY_URL: |
| 83 | type: string |
| 84 | default: "" |
| 85 | REGISTRY_CREDENTIALS_ID: |
| 86 | type: string |
Jakub Josef | fbb3ab9 | 2017-04-13 15:16:52 +0200 | [diff] [blame] | 87 | default: "dockerhub" |
| 88 | DOCKER_GIT_TAG: |
| 89 | type: boolean |
Filip Pytloun | 23567e6 | 2017-04-25 17:52:29 +0200 | [diff] [blame] | 90 | default: "true" |