44 jobs :
55 - unit-tests
66 - unit-tests-pr
7+ - shipit
8+ - rc
79
810jobs :
911 - name : unit-tests
5456 args : []
5557 params :
5658 REPO_ROOT : git
57- on_failure : # TODO channel doesn't exist (yet?)
59+ on_failure :
5860 put : notify
5961 params :
6062 channel : " #pcap-release"
@@ -126,6 +128,84 @@ jobs:
126128 status : failure
127129 context : unit-tests
128130
131+ - name : shipit
132+ public : true
133+ serial : true
134+ plan :
135+ - do :
136+ - in_parallel :
137+ - { get: git, passed: [rc] }
138+ - task : release
139+ config :
140+ platform : linux
141+ image_resource :
142+ type : docker-image
143+ source :
144+ repository : cf-routing.common.repositories.cloud.sap/pcap-release-testflight
145+ tag : latest
146+ username : ((docker.username))
147+ password : ((docker.password))
148+ inputs :
149+ - name : git
150+ outputs :
151+ - name : gh
152+ run :
153+ path : ./git/ci/scripts/shipit
154+ args : []
155+ params :
156+ RELEASE_NAME : pcap-release
157+ REPO_ROOT : git
158+ RELEASE_ROOT : gh
159+ BRANCH : main
160+ GITHUB_OWNER : cloudfoundry
161+ GITHUB_TOKEN : ((github.access_token))
162+ GCP_SERVICE_KEY : ((gcp.service_key))
163+
164+ - put : blobstore
165+ params :
166+ file : " gh/artifacts/pcap-*.tgz"
167+ on_failure :
168+ put : notify
169+ params :
170+ channel : " #pcap-release"
171+ username : ci-bot
172+ icon_url : " ((slack.icon))"
173+ text : " ((slack.fail_url)) pcap-boshrelease : shipit job failed"
174+
175+ - name : rc
176+ public : true
177+ serial : true
178+ plan :
179+ - do :
180+ - in_parallel :
181+ - { get: git, passed: [unit-tests] }
182+ - task : release-candidate
183+ config :
184+ platform : linux
185+ image_resource :
186+ type : docker-image
187+ source :
188+ repository : cf-routing.common.repositories.cloud.sap/pcap-release-testflight
189+ tag : latest
190+ username : ((docker.username))
191+ password : ((docker.password))
192+ inputs :
193+ - name : git
194+ outputs :
195+ - name : gh
196+ run :
197+ path : ./git/ci/scripts/shipit
198+ args : []
199+ params :
200+ RELEASE_NAME : pcap-release
201+ REPO_ROOT : git
202+ RELEASE_ROOT : gh
203+ BRANCH : main
204+ DRY_RUN : true
205+ GITHUB_OWNER : cloudfoundry
206+ GITHUB_TOKEN : ((github.access_token))
207+ GCP_SERVICE_KEY : ((gcp.service_key))
208+
129209resource_types :
130210 - name : slack-notification
131211 type : docker-image
@@ -137,22 +217,18 @@ resource_types:
137217 source :
138218 repository : teliaoss/github-pr-resource
139219
140- # FIXME: Need to use latest version of this resource due to
141- # https://github.com/concourse/github-release-resource/issues/108
142- # https://github.com/concourse/github-release-resource/pull/107
143- # Until Concourse is updated to 7.5.0+
144- - name : github-release-alt
145- type : registry-image
220+ - name : gcs
221+ type : docker-image
146222 source :
147- repository : concourse/github-release -resource
223+ repository : frodenas/gcs -resource
148224
149225resources :
150226 - name : git
151227 type : git
152228 source :
153- uri : git@ github.com: cloudfoundry/pcap-release.git
229+ uri : https:// github.com/ cloudfoundry/pcap-release.git
154230 branch : main
155- private_key : ((github.private_key ))
231+ password : ((github.access_token ))
156232
157233 - name : git-pull-requests
158234 type : pull-request
@@ -166,3 +242,10 @@ resources:
166242 type : slack-notification
167243 source :
168244 url : ((slack.pcap_release_webhook))
245+
246+ - name : blobstore
247+ type : gcs
248+ source :
249+ bucket : pcap-release
250+ json_key : ((gcp.service_key))
251+ regexp : pcap-v[0-9a-z\.+-]+.tgz
0 commit comments