github.com/lalkh/containerd@v1.4.3/script/release/release-cri (about) 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 # Releases and publishes cri-containerd release tarball. 19 # 20 set -eu -o pipefail 21 22 if [[ -z "${VERSION:-}" ]]; then 23 echo "VERSION is not set" 24 exit 1 25 fi 26 27 ROOT=${GOPATH}/src/github.com/containerd/containerd 28 CRI_COMMIT=$(grep github.com/containerd/cri ${ROOT}/vendor.conf | awk '{print $2}') 29 30 go get -d github.com/containerd/cri/... 31 cd $GOPATH/src/github.com/containerd/cri 32 git checkout $CRI_COMMIT 33 make clean 34 make release TARBALL_PREFIX=cri-containerd LOCAL_RELEASE=true VERSION=${VERSION} VENDOR=${ROOT}/vendor.conf 35 make release TARBALL_PREFIX=cri-containerd-cni LOCAL_RELEASE=true INCLUDE_CNI=true VERSION=${VERSION} VENDOR=${ROOT}/vendor.conf 36 37 mkdir -p ${ROOT}/releases/cri 38 cp _output/*.tar.gz ${ROOT}/releases/cri 39 cp _output/*.tar.gz.sha256 ${ROOT}/releases/cri