File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -129,23 +129,8 @@ deploy:
129129 on :
130130 repo : containerd/containerd
131131 tags : true
132- - provider : gcs
133- # Use master branch to work around https://github.com/travis-ci/dpl/issues/792.
134- # TODO: Remove this when the fix for https://github.com/travis-ci/dpl/issues/792
135- # is rolled out.
136- edge :
137- branch : master
138- access_key_id : GOOG1EJPAMPUV4MOGUSPRFM427Q5QOTNODQTMJYPXJFDF46IZLX2NGUQX3T7Q
139- secret_access_key :
140- secure : l3ITadMltGpYXShigdyRfpA7VuNcpGNrY9adB/1dQ5UVp0ZyRyimWX5+ea45JArh95iQCp11kY/7gKgL3tKAPsOXa9Lbt59n3XtlrVk5sqmd4S5+ZaI4Za4cRnkhkIAqro/IYsnzdLHqhCFYEmEDyMiI45RBkYYea+fnZFAGaTePmGwnD2LOn7A1z+dDGHt5g1Rpmdj1kB/AsHG6Wr8oGhMg9RlzSkAw2EAc1X3/9ofjOVM0AyB/hAgm/vmgisnqRSKzILqhL04d5b3gavrFn2YjrSEqP102BgYksn7EsJd1NMjA6Hj/qfVNCTn+rL8M85IE6JIAjrBog/HFv8Ez1bl1kSbB9UmAYZizEi7VD/fcxukYOPgqjDUoLrNaS3q+K0DkE1jzzcr72iMM+I8WJga7Vh4+MYjXadD5V96i2QDpthkEMvy1EpWvwQSl/fexaz2nJA5/CiX/V9GnWVsZiWlq/qMxji/ZbWsB04zRDfk9JneI7tubTNYj5FHrzhCQ7jrZYnXY/pb0sQkF1qczpH4PaXXgLnN00xffNudhsA6xZe/d22Yq+LELXeEmfOKD5j/DGdJGINgMj8RcngyKK6znBlBZ7nF3yqhLg4fHrCk9iOivGUXvKqdruqH+Yl7DUAp1Y0sySFlPF4I8RzMPHGPFqAJ9Q+rN2BNslClHAuA=
141- # TODO: use cri-containerd-release after testing.
142- # bucket: cri-containerd-release
143- bucket : cri-containerd-staging
144- skip_cleanup : true
145- acl : public-read
146- file :
147- - releases/cri/*.tar.gz
148- - releases/cri/*.tar.gz.sha256
132+ - provider : script
133+ script : bash script/release/deploy-cri
149134 on :
150135 repo : containerd/containerd
151136 # TODO: switch `tags: true` after validating on master
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright The containerd Authors.
4+
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
17+ #
18+ # Deploy the cri-containerd release tarball to gcs.
19+ #
20+ set -eu -o pipefail
21+
22+ ROOT=${GOPATH} /src/github.com/containerd/containerd
23+ # TODO: Change cri-containerd-release after tested.
24+ BUCKET=" gs://cri-containerd-staging"
25+
26+ rm -rf " ${HOME} /google-cloud-sdk"
27+ export CLOUDSDK_CORE_DISABLE_PROMPTS=1
28+ curl https://sdk.cloud.google.com | bash > /dev/null
29+ gcloud version
30+
31+ openssl aes-256-cbc -K $encrypted_0a6446eb3ae3_key -iv $encrypted_0a6446eb3ae3_iv -in " ${ROOT} /script/release/gcp-secret.json.enc" -out gcp-secret.json -d
32+ gcloud auth activate-service-account --key-file gcp-secret.json --project=k8s-cri-containerd
33+
34+ gsutil cp " ${ROOT} /releases/cri/*.tar.gz" " ${BUCKET} "
35+ gsutil cp " ${ROOT} /releases/cri/*.tar.gz.sha256" " ${BUCKET} "
You can’t perform that action at this time.
0 commit comments