Browse Source

Build docker image

This adds a job which builds the Dockerfile; it inherits from a
job which uses a buildset registry.

Change-Id: If7789d7bf969b3566dc55343aa1cf0761b96d7b3
changes/37/637037/5
James E. Blair 3 months ago
parent
commit
f6c78a3605
1 changed files with 48 additions and 2 deletions
  1. 48
    2
      .zuul.yaml

+ 48
- 2
.zuul.yaml View File

@@ -1,7 +1,53 @@
1
+# Image building jobs
2
+- secret:
3
+    name: zuul-preview-dockerhub
4
+    data:
5
+      username: zuulzuul
6
+      password: !encrypted/pkcs1-oaep
7
+        - LZGNolqf2Y54m56CnmrAFZeAnQie0RZ3nBRtX1zqr8PUpZZRrACwVck0Nec8w9rmkCMiA
8
+          ic4Sm5b9kzAPT60sZ0G0R2SeZzE3g2HxMdDyzyjcpY+8xliU4BuR+RUOg12WuA1ivZb5g
9
+          JJP2N/hoYydBrVW1em7oChhhhoTEtSgf7FgQMWB5O/WsZ/8ukrOCo1Wwb5+9q7BolEHtW
10
+          KfHpTWv0PkAjJlQW36WZYi4Pgo84gd+H1RXx1/KzeUhuV+iINeroTrlP4cf2fSoOEjnoT
11
+          jLhIBa8d3ep6URdXexNfAr0bQoz36xocmy8bu6PYTJbS1lcTsKEvNe0I7hyNHV/HwKwRr
12
+          4CCsHjqMSdN/hSbmpkFjQsJOgjHMFYwt7QuFlGkY3MT0/WUAPmx0gGF/XJfFMwqUdxk7g
13
+          GqMYee2MHohDkHF6O4CVmoAJGGZ1hRD9BfdXeCbYyETu+6rTlyXcbViPM2Tu9NFVcCQDJ
14
+          SuFy5Lmts5huiZWiVzL87Ql5AxcgM49WuA3FDnLKZV3KH78VmWJOudNnMttxg/29E40+J
15
+          hNjvRuhawyXarlarURPESEXRT49E4ywDuAE6MqJGDiWXdqv5LrHep1iAdyFd/1J/KD82T
16
+          nadoBxpFGzzkcVV+H3EnfMQmUJ8UMA6YmF1jx5XpIR0Wj7j+OhbJTCMCruG6Xs=
17
+
18
+- job:
19
+    name: zuul-preview-build-image
20
+    parent: opendev-build-docker-image
21
+    vars: &zuul_preview_image_vars
22
+      docker_images:
23
+        - context: .
24
+          repository: zuul/zuul-preview
25
+
26
+- job:
27
+    name: zuul-preview-upload-image
28
+    parent: opendev-upload-docker-image
29
+    vars: *zuul_preview_image_vars
30
+    secrets:
31
+      name: docker_credentials
32
+      secret: zuul-preview-dockerhub
33
+      pass-to-parent: true
34
+
35
+- job:
36
+    name: zuul-preview-promote-image
37
+    parent: opendev-promote-docker-image
38
+    vars: *zuul_preview_image_vars
39
+    secrets:
40
+      name: docker_credentials
41
+      secret: zuul-preview-dockerhub
42
+      pass-to-parent: true
43
+
1 44
 - project:
2 45
     check:
3 46
       jobs:
4
-        - noop
47
+        - zuul-preview-build-image
5 48
     gate:
6 49
       jobs:
7
-        - noop
50
+        - zuul-preview-upload-image
51
+    promote:
52
+      jobs:
53
+        - zuul-preview-promote-image

Loading…
Cancel
Save