Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update all dependencies#1668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
montanalow merged 12 commits intomasterfrommontana/bump
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from1 commit
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
PrevPrevious commit
NextNext commit
expand ubuntu and postgres version supported
  • Loading branch information
@montanalow
montanalow committedJan 11, 2025
commitc727c01eada58ad8d3d3b70a8c859b2d529a00b3
4 changes: 2 additions & 2 deletionspackages/postgresml/build.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

export PACKAGE_VERSION=${1:-"2.7.12"}
export PGVERSION=${2:-"14"}
export UBUNTU_VERSION=${3:-"24.04"}

deb_dir="/tmp/postgresml/deb-build"

Expand All@@ -26,5 +27,4 @@ dpkg-deb \
--root-owner-group \
-z1 \
--build "$deb_dir" \
postgresml-${PGVERSION}-${PACKAGE_VERSION}-ubuntu22.04-all.deb

postgresml-${PGVERSION}-${PACKAGE_VERSION}-ubuntu${UBUNTU_VERSION}-all.deb
62 changes: 40 additions & 22 deletionspackages/postgresml/release.sh
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,34 +5,52 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
package_version="$1"

if [[ -z "$package_version" ]]; then
echo "postgresml package build and release script"
echo "usage: $0 <package version, e.g. 2.7.12>"
exit 1
echo "postgresml package build and release script"
echo "usage: $0 <package version, e.g. 2.7.12>"
exit 1
fi

if ! which deb-s3; then
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
deb-s3
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/0.11.4/deb-s3-0.11.4.gem
sudo gem install deb-s3-0.11.4.gem
deb-s3
fi

function package_name() {
echo "postgresml-$1-$package_version-ubuntu22.04-all.deb"
local pg_version=$1
local ubuntu_version=$2
echo "postgresml-${pg_version}-${package_version}-ubuntu${ubuntu_version}-all.deb"
}

for pg in {12..16}; do
bash ${SCRIPT_DIR}/build.sh ${package_version} ${pg}

if [[ ! -f $(package_name ${pg}) ]]; then
echo "File $(package_name ${pg}) doesn't exist"
exit 1
fi

deb-s3 upload \
--lock \
--bucket apt.postgresml.org \
$(package_name ${pg}) \
--codename $(lsb_release -cs)

rm $(package_name ${pg})
# Active LTS Ubuntu versions
ubuntu_versions=("20.04" "22.04" "24.04")

# Map Ubuntu versions to codenames
declare -A ubuntu_codenames=(
["20.04"]="focal"
["22.04"]="jammy"
["24.04"]="noble"
)

for ubuntu_version in "${ubuntu_versions[@]}"; do
codename=${ubuntu_codenames[$ubuntu_version]}
echo "Building packages for Ubuntu ${ubuntu_version} (${codename})"

for pg in {11..17}; do
echo "Building PostgreSQL ${pg} package..."
bash ${SCRIPT_DIR}/build.sh ${package_version} ${pg} ${ubuntu_version}

if [[ ! -f $(package_name ${pg} ${ubuntu_version}) ]]; then
echo "File $(package_name ${pg} ${ubuntu_version}) doesn't exist"
exit 1
fi

deb-s3 upload \
--lock \
--bucket apt.postgresml.org \
$(package_name ${pg} ${ubuntu_version}) \
--codename ${codename}

rm $(package_name ${pg} ${ubuntu_version})
done
done

[8]ページ先頭

©2009-2025 Movatter.jp