From be53ffee83381daba3d1ffba0491f12732be6421 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Tue, 7 Jan 2025 01:40:39 +0900 Subject: [PATCH] Remove scripts/release.sh because of no longer used scripts/release.sh is used for release plugins manually (by maintainer's hand), previously. Now we introduced automated release process by github action, hence it is no longer used and no longer maintained. This change removes this file. Thanks, release.sh for a long time! Signed-off-by: Tomofumi Hayashi --- scripts/release.sh | 49 ---------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100755 scripts/release.sh diff --git a/scripts/release.sh b/scripts/release.sh deleted file mode 100755 index 6f810d8e5..000000000 --- a/scripts/release.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env sh -set -xe - -SRC_DIR="${SRC_DIR:-$PWD}" -DOCKER="${DOCKER:-docker}" -GOLANG="${GOLANG:-golang:1.23-alpine}" - -TAG=$(git describe --tags --dirty) -RELEASE_DIR=release-${TAG} - -BUILDFLAGS="-ldflags '-extldflags -static -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${TAG}'" - -OUTPUT_DIR=bin - -# Always clean first -rm -Rf ${SRC_DIR}/${RELEASE_DIR} -mkdir -p ${SRC_DIR}/${RELEASE_DIR} -mkdir -p ${OUTPUT_DIR} - -$DOCKER run -ti -v ${SRC_DIR}:/go/src/github.com/containernetworking/plugins:z --rm "${GOLANG}" \ -/bin/sh -xe -c "\ - apk --no-cache add bash tar; - cd /go/src/github.com/containernetworking/plugins; umask 0022; - - for arch in amd64 arm arm64 ppc64le s390x mips64le riscv64; do \ - rm -f ${OUTPUT_DIR}/*; \ - CGO_ENABLED=0 GOARCH=\$arch ./build_linux.sh ${BUILDFLAGS}; \ - for format in tgz; do \ - FILENAME=cni-plugins-linux-\$arch-${TAG}.\$format; \ - FILEPATH=${RELEASE_DIR}/\$FILENAME; \ - tar -C ${OUTPUT_DIR} --owner=0 --group=0 -caf \$FILEPATH .; \ - done; \ - done; - - rm -rf ${OUTPUT_DIR}/*; \ - CGO_ENABLED=0 GOARCH=amd64 ./build_windows.sh ${BUILDFLAGS}; \ - for format in tgz; do \ - FILENAME=cni-plugins-windows-amd64-${TAG}.\$format; \ - FILEPATH=${RELEASE_DIR}/\$FILENAME; \ - tar -C ${OUTPUT_DIR} --owner=0 --group=0 -caf \$FILEPATH .; \ - done; - - - cd ${RELEASE_DIR}; - for f in *.tgz; do sha1sum \$f > \$f.sha1; done; - for f in *.tgz; do sha256sum \$f > \$f.sha256; done; - for f in *.tgz; do sha512sum \$f > \$f.sha512; done; - cd .. - chown -R ${UID} ${OUTPUT_DIR} ${RELEASE_DIR}"