Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions dev/release/03-binary.sh
Original file line numberDiff line numberDiff line change
Expand Up@@ -65,6 +65,11 @@ if [ -z "${BINTRAY_PASSWORD}" ]; then
exit 1
fi

if ! jq --help > /dev/null 2>&1; then
echo "jq is required"
exit 1
fi

: ${BINTRAY_REPOSITORY:=apache/arrow}

docker_run() {
Expand DownExpand Up@@ -121,15 +126,6 @@ fi
rm -rf ${container_id_dir}
}

jq() {
docker \
run \
--rm \
--interactive \
${docker_image_name} \
jq "$@"
}

bintray() {
local command=$1
shift
Expand DownExpand Up@@ -181,6 +177,7 @@ download_files() {
GET /packages/${BINTRAY_REPOSITORY}/${target}-rc/versions/${version_name}/files | \
jq -r ".[].path")

local file=
for file in ${files}; do
mkdir -p "$(dirname ${file})"
curl \
Expand DownExpand Up@@ -239,6 +236,7 @@ sign_and_upload_file() {

upload_file ${version} ${rc} ${target} ${local_path} ${upload_path}

local suffix=
for suffix in asc sha256 sha512; do
pushd $(dirname ${local_path})
local local_path_base=$(basename ${local_path})
Expand DownExpand Up@@ -293,6 +291,7 @@ upload_deb() {
local distribution=$3
local code_name=$4

local base_path=
for base_path in *; do
upload_deb_file ${version} ${rc} ${distribution} ${code_name} ${base_path} &
done
Expand DownExpand Up@@ -327,6 +326,7 @@ upload_apt() {
${keyring_name} \
${keyring_name} &

local pool_code_name=
for pool_code_name in pool/*; do
local code_name=$(basename ${pool_code_name})
local dist=dists/${code_name}/main
Expand DownExpand Up@@ -363,6 +363,7 @@ upload_apt() {
--output dists/${code_name}/Release.gpg \
dists/${code_name}/Release

local path=
for path in $(find dists/${code_name}/ -type f); do
sign_and_upload_file \
${version} \
Expand DownExpand Up@@ -415,6 +416,7 @@ upload_rpm() {
local distribution=$3
local distribution_version=$4

local rpm_path=
for rpm_path in *.rpm; do
upload_rpm_file \
${version} \
Expand DownExpand Up@@ -449,6 +451,9 @@ upload_yum() {
${distribution} \
${keyring_name} \
${keyring_name} &
local version_dir=
local arch_dir=
local repo_path=
for version_dir in $(find . -mindepth 1 -maxdepth 1 -type d); do
for arch_dir in ${version_dir}/*; do
mkdir -p ${arch_dir}/repodata/
Expand All@@ -475,6 +480,7 @@ upload_python() {
local rc=$2
local target=python

local base_path=
for base_path in *; do
case ${base_path} in
*.asc|*.sha256|*.sha512)
Expand Down
1 change: 0 additions & 1 deletion dev/release/binary/Dockerfile
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,7 +29,6 @@ RUN \
createrepo \
devscripts \
gpg \
jq \
openssh-server \
rpm \
sudo && \
Expand Down