Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751060
release.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
release.sh
View Options
#!/bin/bash
# Release script
# Run with "--rebuild" to not bump the version
# Run with "--rebuild --nobuild --nopublish" to locally rebuild chart and kolab-kubernetes-latest.tar.gz
set
-e
# Version of the kolab-kubernetes release tarball
RELEASE_VERSION
=
"latest"
export
REGISTRY
=
${
REGISTRY
:-
"quay.io/apheleiait/kolab"
}
CURRENT_VERSION
=
$(
cat ./version
)
# Versions that we tag this release with
VERSION_CHANNEL
=
"4.0"
if
[[
"
$1
"
==
"--rebuild"
]]
;
then
shift
VERSION
=
"
$CURRENT_VERSION
"
else
VERSION
=
$(
echo
"
$CURRENT_VERSION
"
|
awk -F.
'/[0-9]+\./{$NF++;print}'
OFS
=
.
)
echo
"Found
$CURRENT_VERSION
, releasing
$VERSION
"
sed -i
"s/
$CURRENT_VERSION
/
$VERSION
/g"
kolab/values.yaml
sed -i
"s/
$CURRENT_VERSION
/
$VERSION
/g"
version
sed -i
"s/
$CURRENT_VERSION
/
$VERSION
/g"
kolabctl
fi
# Version of the helm chart itself
CHART_VERSION
=
"
$VERSION
"
if
[[
"
$1
"
==
"--nobuild"
]]
;
then
shift
echo
"Not building the images"
else
podman login -u
=
'apheleiait+release'
-p
=
'X9D70QCCSXDSG5VZ2L74UGG4XLA7DB16LUW6U7CD0ZDI5ULCF3D8GJOHL3D0DVG1'
quay.io
env
REGISTRY
=
"quay.io/apheleiait/kolab"
build/build.sh --nochecks --release
"
$VERSION
"
"
$VERSION_CHANNEL
"
"latest"
fi
helm registry login -u
'apheleiait+release'
-p
'X9D70QCCSXDSG5VZ2L74UGG4XLA7DB16LUW6U7CD0ZDI5ULCF3D8GJOHL3D0DVG1'
quay.io/apheleiait
helm lint -f build/test.values.yaml ./kolab/
shellcheck kolabctl
helm package --app-version
"
$VERSION
"
--version
"
$CHART_VERSION
"
kolab/
git archive -o
"kolab-kubernetes-
$RELEASE_VERSION
.tar.gz"
master docs/ deployments/ examples/ kolabctl
if
[[
"
$1
"
==
"--nopublish"
]]
;
then
shift
echo
"Not publishing"
else
helm push
"kolab-
$CHART_VERSION
.tgz"
"oci://
$REGISTRY
"
scp
"kolab-kubernetes-
$RELEASE_VERSION
.tar.gz"
mirror.apheleia-it.ch:/var/www/kolabsys.com/mirror/public/
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Apr 4, 2:48 AM (4 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18779064
Default Alt Text
release.sh (1 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline