11# Build all the docker images and put them into container registry (gcr.io)
22# Later, these images will be copied to artifacts registry on demand.
3+ # NOTE: Wrappers will be pushed into 2 GCP projects. This is because we still
4+ # need to push to the old one for backward compatibility.
35
46timeout : 1800s
57
@@ -47,9 +49,12 @@ steps:
4749 env : ['CGO_ENABLED=0']
4850- name : ' gcr.io/kaniko-project/executor:v1.1.0'
4951 args :
50- - --destination=gcr.io/$_IMAGE_PROJECT/gce_vm_image_import:$_RELEASE
51- - --destination=gcr.io/$_IMAGE_PROJECT/gce_vm_image_import:$COMMIT_SHA
52- - --destination=gcr.io/$_IMAGE_PROJECT/gce_vm_image_import:$_WORKFLOW_EXECUTION_ID
52+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_vm_image_import:$_RELEASE
53+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_vm_image_import:$COMMIT_SHA
54+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_vm_image_import:$_WORKFLOW_EXECUTION_ID
55+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_vm_image_import:$_RELEASE
56+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_vm_image_import:$COMMIT_SHA
57+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_vm_image_import:$_WORKFLOW_EXECUTION_ID
5358 - --context=/workspace
5459 - --dockerfile=gce_vm_image_import.Dockerfile
5560
@@ -60,9 +65,12 @@ steps:
6065 env : ['CGO_ENABLED=0']
6166- name : ' gcr.io/kaniko-project/executor:v1.1.0'
6267 args :
63- - --destination=gcr.io/$_IMAGE_PROJECT/gce_onestep_image_import:$_RELEASE
64- - --destination=gcr.io/$_IMAGE_PROJECT/gce_onestep_image_import:$COMMIT_SHA
65- - --destination=gcr.io/$_IMAGE_PROJECT/gce_onestep_image_import:$_WORKFLOW_EXECUTION_ID
68+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_onestep_image_import:$_RELEASE
69+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_onestep_image_import:$COMMIT_SHA
70+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_onestep_image_import:$_WORKFLOW_EXECUTION_ID
71+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_onestep_image_import:$_RELEASE
72+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_onestep_image_import:$COMMIT_SHA
73+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_onestep_image_import:$_WORKFLOW_EXECUTION_ID
6674 - --context=/workspace
6775 - --dockerfile=gce_onestep_image_import.Dockerfile
6876
@@ -73,9 +81,12 @@ steps:
7381 env : ['CGO_ENABLED=0']
7482- name : ' gcr.io/kaniko-project/executor:v1.1.0'
7583 args :
76- - --destination=gcr.io/$_IMAGE_PROJECT/gce_vm_image_export:$_RELEASE
77- - --destination=gcr.io/$_IMAGE_PROJECT/gce_vm_image_export:$COMMIT_SHA
78- - --destination=gcr.io/$_IMAGE_PROJECT/gce_vm_image_export:$_WORKFLOW_EXECUTION_ID
84+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_vm_image_export:$_RELEASE
85+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_vm_image_export:$COMMIT_SHA
86+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_vm_image_export:$_WORKFLOW_EXECUTION_ID
87+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_vm_image_export:$_RELEASE
88+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_vm_image_export:$COMMIT_SHA
89+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_vm_image_export:$_WORKFLOW_EXECUTION_ID
7990 - --context=/workspace
8091 - --dockerfile=gce_vm_image_export.Dockerfile
8192
@@ -86,9 +97,12 @@ steps:
8697 env : ['CGO_ENABLED=0']
8798- name : ' gcr.io/kaniko-project/executor:v1.1.0'
8899 args :
89- - --destination=gcr.io/$_IMAGE_PROJECT/gce_ovf_import:$_RELEASE
90- - --destination=gcr.io/$_IMAGE_PROJECT/gce_ovf_import:$COMMIT_SHA
91- - --destination=gcr.io/$_IMAGE_PROJECT/gce_ovf_import:$_WORKFLOW_EXECUTION_ID
100+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_ovf_import:$_RELEASE
101+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_ovf_import:$COMMIT_SHA
102+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_ovf_import:$_WORKFLOW_EXECUTION_ID
103+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_ovf_import:$_RELEASE
104+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_ovf_import:$COMMIT_SHA
105+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_ovf_import:$_WORKFLOW_EXECUTION_ID
92106 - --context=/workspace
93107 - --dockerfile=gce_ovf_import.Dockerfile
94108
@@ -99,20 +113,31 @@ steps:
99113 env : ['CGO_ENABLED=0']
100114- name : ' gcr.io/kaniko-project/executor:v1.1.0'
101115 args :
102- - --destination=gcr.io/$_IMAGE_PROJECT/gce_ovf_export:$_RELEASE
103- - --destination=gcr.io/$_IMAGE_PROJECT/gce_ovf_export:$COMMIT_SHA
104- - --destination=gcr.io/$_IMAGE_PROJECT/gce_ovf_export:$_WORKFLOW_EXECUTION_ID
116+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_ovf_export:$_RELEASE
117+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_ovf_export:$COMMIT_SHA
118+ - --destination=gcr.io/$_IMAGE_PROJECT_1/gce_ovf_export:$_WORKFLOW_EXECUTION_ID
119+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_ovf_export:$_RELEASE
120+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_ovf_export:$COMMIT_SHA
121+ - --destination=gcr.io/$_IMAGE_PROJECT_2/gce_ovf_export:$_WORKFLOW_EXECUTION_ID
105122 - --context=/workspace
106123 - --dockerfile=gce_ovf_export.Dockerfile
107124
108- # Copy Linux binaries to GCS
125+ # Copy Linux binaries to GCS - _IMAGE_PROJECT_1
109126- name : ' gcr.io/cloud-builders/gsutil'
110- args : ['cp', '/workspace/linux/*', 'gs://$_IMAGE_PROJECT /$_RELEASE/linux/']
127+ args : ['cp', '/workspace/linux/*', 'gs://$_IMAGE_PROJECT_1 /$_RELEASE/linux/']
111128
112- # Copy Windows binaries to GCS
129+ # Copy Linux binaries to GCS - _IMAGE_PROJECT_2
113130- name : ' gcr.io/cloud-builders/gsutil'
114- args : ['cp', '/workspace/windows /*', 'gs://$_IMAGE_PROJECT /$_RELEASE/windows /']
131+ args : ['cp', '/workspace/linux /*', 'gs://$_IMAGE_PROJECT_2 /$_RELEASE/linux /']
115132
116- # Make binaries world-readable.
133+ # Copy Windows binaries to GCS - _IMAGE_PROJECT_1
117134- name : ' gcr.io/cloud-builders/gsutil'
118- args : ['-m', 'acl', '-r', 'ch', '-u', 'AllUsers:R', 'gs://$_IMAGE_PROJECT/$_RELEASE/*']
135+ args : ['cp', '/workspace/windows/*', 'gs://$_IMAGE_PROJECT_1/$_RELEASE/windows/']
136+
137+ # Copy Windows binaries to GCS - _IMAGE_PROJECT_2
138+ - name : ' gcr.io/cloud-builders/gsutil'
139+ args : ['cp', '/workspace/windows/*', 'gs://$_IMAGE_PROJECT_2/$_RELEASE/windows/']
140+
141+ # Make binaries world-readable - _IMAGE_PROJECT_1
142+ - name : ' gcr.io/cloud-builders/gsutil'
143+ args : ['-m', 'acl', '-r', 'ch', '-u', 'AllUsers:R', 'gs://$_IMAGE_PROJECT_1/$_RELEASE/*']
0 commit comments