Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Commit f48524c

Browse files
KauzClaymike1808
andcommitted
ci: add job to build our annotate image
Co-authored-by: Mikael Manukyan <[email protected]>
1 parent 8e6bf43 commit f48524c

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

ci/images.yml

+52
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
11
resources:
2+
# Deplab is a tool to annotate Docker images with additional metadata, such
3+
# as SHA of the source code used to build an image, the list of used packages
4+
# in the image, etc.
5+
- name: deplab-task
6+
type: docker-image
7+
icon: docker
8+
source:
9+
repository: dev.registry.pivotal.io/navcon/deplab-task
10+
tag: dev
11+
12+
password: ((pivotal_cf_networking_pivnet_password))
13+
14+
- name: gcr-deplab-task
15+
type: docker-image
16+
icon: docker
17+
source:
18+
repository: gcr.io/cf-routing/cf-k8s-networking/gcr-deplab-task
19+
username: _json_key
20+
password: ((shared_gcp_account_creds))
21+
22+
- name: annotate-image
23+
type: docker-image
24+
icon: docker
25+
source:
26+
repository: gcr.io/cf-routing/cf-k8s-networking/annotate
27+
username: _json_key
28+
password: ((shared_gcp_account_creds))
29+
230
- name: k8s-deploy-image
331
type: docker-image
432
icon: docker
@@ -84,6 +112,30 @@ resources:
84112
password: ((dockerhub_public.password))
85113

86114
jobs:
115+
- name: build-annotate-image
116+
plan:
117+
- in_parallel:
118+
- get: deplab-task
119+
trigger: true
120+
params:
121+
save: true
122+
- get: cf-k8s-networking
123+
- get: cf-k8s-networking-ci
124+
- get: cf-k8s-networking-docker-images
125+
trigger: true
126+
# TODO(ck,mm): this is a hack. We can't figure out how to pull from deplabs
127+
# actual registry, so we copy the image into our own registry first, then
128+
# use the copy as the source for our new annotate image
129+
- put: gcr-deplab-task
130+
params:
131+
tag_as_latest: true
132+
load: deplab-task
133+
- put: annotate-image
134+
params:
135+
build: cf-k8s-networking-docker-images/ci/dockerfiles/annotate
136+
tag_as_latest: true
137+
138+
87139
- name: build-k8s-deploy-image
88140
plan:
89141
- in_parallel:

0 commit comments

Comments
 (0)