Skip to content

Commit

Permalink
Preparation for 1.0 release (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Aravinda Vishwanathapura <[email protected]>
  • Loading branch information
aravindavk authored Nov 29, 2022
1 parent 0ae8677 commit 151c315
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
kadalu-storage (1.0.0-1) UNRELEASED; urgency=low

* First GA release
* Based on GlusterFS 11.0 release

-- Kadalu Technologies Pvt Limited <[email protected]> Wed, 30 Nov 2022 07:07:07 +0530

kadalu-storage (1.0.0-beta.2-1) UNRELEASED; urgency=low

* Beta 2 release
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
kadalu-storage-manager (1.0.0-1) UNRELEASED; urgency=low

* First GA release of Kadalu Storage manager
* Full list of Changes here https://github.com/kadalu/moana/blob/main/CHANGELOG.adoc

-- Kadalu Technologies Pvt Limited <[email protected]> Wed, 30 Nov 2022 07:07:10 +0530

kadalu-storage-manager (1.0.0-beta.2-1) UNRELEASED; urgency=low

* Beta 2 release
Expand Down
28 changes: 14 additions & 14 deletions src/1.0.x/ubuntu-22.04.t → releases/1.0.x/ubuntu-22.04.t
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- mode: ruby -*-
PACKAGING_GPG_SIGNING_KEY = ENV["PACKAGING_GPG_SIGNING_KEY"]
PKG_VERSION = ENV.fetch("PKG_VERSION", "1.0.0-beta.2")
MOANA_TAG = ENV.fetch("MOANA_TAG", "1.0.0-beta.2")
GLUSTERFS_BRANCH = ENV.fetch("GLUSTERFS_BRANCH", "kadalu_1")
MAJOR_VERSION = "1"
PKG_VERSION = ENV["PKG_VERSION"]
MOANA_TAG = PKG_VERSION
GLUSTERFS_TAG = "k#{PKG_VERSION}"
VERSION_DIR = "#{PKG_VERSION.split(".")[0]}.#{PKG_VERSION.split(".")[1]}.x"
DISTRO_VERSION = "22.04"
DISTRO = "ubuntu"

Expand Down Expand Up @@ -50,7 +50,7 @@ TEST "docker ps"
containers.each do |container|
USE_NODE "local"
# Copy the sources, script and checkout the required branches
TEST %{docker cp changelogs #{container}:/root/}
TEST %{docker cp #{VERSION_DIR}/changelogs #{container}:/root/}
TEST "docker cp build #{container}:/root/"

USE_NODE container
Expand Down Expand Up @@ -78,16 +78,16 @@ containers.each do |container|
TEST "cd /root/build/moana && git checkout -b #{MOANA_TAG} tags/#{MOANA_TAG}"
TEST "mv /root/build/moana /root/build/#{pkg1}"
TEST "cd /root/build/ && tar cvzf #{pkg1}.tar.gz #{pkg1}"
TEST "cp /root/changelogs/moana/changelog-#{MAJOR_VERSION} /root/build/#{pkg1}/packaging/moana/debian/changelog"
TEST "cp /root/changelogs/moana /root/build/#{pkg1}/packaging/moana/debian/changelog"
TEST "cp -r /root/build/#{pkg1}/packaging/moana/debian /root/build/#{pkg1}/"
TEST "cd /root/build/#{pkg1} && debmake -b\":python3\" && debuild -eVERSION=#{PKG_VERSION}"

# Build GlusterFS
pkg2 = "kadalu-storage-#{PKG_VERSION}"
TEST "cd /root/build/glusterfs && git checkout -b #{GLUSTERFS_BRANCH} origin/#{GLUSTERFS_BRANCH}"
TEST "cd /root/build/glusterfs && git checkout -b #{GLUSTERFS_TAG} tags/#{GLUSTERFS_TAG}"
TEST "mv /root/build/glusterfs /root/build/#{pkg2}"
TEST "cd /root/build/ && tar cvzf #{pkg2}.tar.gz #{pkg2}"
TEST "cp /root/changelogs/glusterfs/changelog-#{MAJOR_VERSION} /root/build/#{pkg1}/packaging/glusterfs/debian/changelog"
TEST "cp /root/changelogs/glusterfs /root/build/#{pkg1}/packaging/glusterfs/debian/changelog"
# Copy debian directory from moana repo to build root of respective package
TEST "cp -r /root/build/#{pkg1}/packaging/glusterfs/debian /root/build/#{pkg2}/"
TEST "cd /root/build/#{pkg2} && debmake -b\":python3\" && debuild -eVERSION=#{PKG_VERSION}"
Expand Down Expand Up @@ -122,17 +122,17 @@ TEST "cd /root/packages && apt-ftparchive release . > Release"
TEST "cd /root/packages && gpg --local-user \"[email protected]\" -abs -o - Release > Release.gpg"
TEST "cd /root/packages && gpg --local-user \"[email protected]\" --clearsign -o - Release > InRelease"
TEST "cd /root/packages && gpg --armor --export \"[email protected]\" > KEY.gpg"
TEST "echo \"deb https://kadalu.tech/pkgs/#{MAJOR_VERSION}/#{DISTRO}/#{DISTRO_VERSION} ./\" > sources.list"
TEST "echo \"deb https://kadalu.tech/pkgs/#{VERSION_DIR}/#{DISTRO}/#{DISTRO_VERSION} ./\" > sources.list"

USE_NODE "local"

# Clone the existing output directory
TEST "rm -rf ./output"
TEST "git clone https://github.com/kadalu-tech/pkgs.git output"
TEST "cd output && git checkout -b gh-pages origin/gh-pages"
TEST "rm -rf output/#{MAJOR_VERSION}/#{DISTRO}/#{DISTRO_VERSION}"
TEST "mkdir -p output/#{MAJOR_VERSION}/#{DISTRO}/#{DISTRO_VERSION}"
TEST "docker cp #{containers[0]}:/root/packages/. output/#{MAJOR_VERSION}/#{DISTRO}/#{DISTRO_VERSION}/"
TEST "rm -rf output/#{VERSION_DIR}/#{DISTRO}/#{DISTRO_VERSION}"
TEST "mkdir -p output/#{VERSION_DIR}/#{DISTRO}/#{DISTRO_VERSION}"
TEST "docker cp #{containers[0]}:/root/packages/. output/#{VERSION_DIR}/#{DISTRO}/#{DISTRO_VERSION}/"
TEST "rm -rf output/.git*"
TEST "chmod -R 777 output/#{MAJOR_VERSION}/#{DISTRO}/#{DISTRO_VERSION}/*"
TEST "ls output/#{MAJOR_VERSION}/#{DISTRO}/#{DISTRO_VERSION}/"
TEST "chmod -R 777 output/#{VERSION_DIR}/#{DISTRO}/#{DISTRO_VERSION}/*"
TEST "ls output/#{VERSION_DIR}/#{DISTRO}/#{DISTRO_VERSION}/"
2 changes: 1 addition & 1 deletion runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dist=$2
major_version=$(cut -d "." -f 1 <<< $version)
minor_version=$(cut -d "." -f 2 <<< $version)

FILE=src/${major_version}.${minor_version}.x/${dist}.t
FILE=releases/${major_version}.${minor_version}.x/${dist}.t
if [ -f "$FILE" ]; then
echo "Version: ${version} Runner: ${FILE}"
PKG_VERSION=${version} PACKAGING_GPG_SIGNING_KEY=${PACKAGING_GPG_SIGNING_KEY} \
Expand Down

0 comments on commit 151c315

Please sign in to comment.