forked from apache/geode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fe62ab
commit 4ed44e1
Showing
2 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,11 +50,11 @@ if [[ ${VERSION} == "" ]] || [[ ${SIGNING_KEY} == "" ]] || [[ ${GITHUB_USER} == | |
usage | ||
fi | ||
|
||
SIGNING_KEY=$(echo $SIGNING_KEY|tr -d ' ') | ||
SIGNING_KEY=$(echo $SIGNING_KEY|sed 's/[^0-9A-Fa-f]//g') | ||
if [[ $SIGNING_KEY =~ ^[0-9A-Fa-f]{40}$ ]]; then | ||
true | ||
else | ||
echo "Malformed signing key ${SIGNING_KEY}. Example valid key: '0000 0000 1111 1111 2222 2222 3333 3333 ABCD 1234'" | ||
echo "Malformed signing key ${SIGNING_KEY}. Example valid key: '0000 0000 1111 1111 2222 2222 3333 3333 ABCD 1234'" | ||
exit 1 | ||
fi | ||
|
||
|
@@ -84,7 +84,7 @@ fi | |
echo "============================================================" | ||
echo "Updating brew" | ||
echo "============================================================" | ||
cd ${BREW}/Formula | ||
cd ${BREW_DIR}/Formula | ||
git pull | ||
git remote add myfork [email protected]:${GITHUB_USER}/homebrew-core.git | ||
if ! git fetch myfork ; then | ||
|
@@ -126,6 +126,7 @@ cd ${GEODE}/docker | |
docker build . | ||
docker build -t apachegeode/geode:${VERSION} . | ||
docker build -t apachegeode/geode:latest . | ||
docker login | ||
docker push apachegeode/geode:${VERSION} | ||
docker push apachegeode/geode:latest | ||
set +x | ||
|
@@ -142,6 +143,20 @@ cd ci/pipelines/meta | |
set +x | ||
|
||
|
||
echo "============================================================" | ||
echo "Removing temporary commit from geode-examples..." | ||
echo "============================================================" | ||
cd ${GEODE_EXAMPLES} | ||
git pull | ||
sed -e 's#^geodeRepositoryUrl *=.*#geodeRepositoryUrl =#' \ | ||
-e 's#^geodeReleaseUrl *=.*#geodeReleaseUrl =#' -i.bak gradle.properties | ||
rm gradle.properties.bak | ||
git add gradle.properties | ||
git diff --staged | ||
git commit -m 'Revert "temporarily point to staging repo for CI purposes"' | ||
git push | ||
|
||
|
||
echo "============================================================" | ||
echo "Merging to master" | ||
echo "============================================================" | ||
|
@@ -198,22 +213,23 @@ cd $WORKSPACE/dist/release/geode | |
svn update --set-depth immediates | ||
#identify the latest patch release for the latest 2 major.minor releases, remove anything else from mirrors (all releases remain available on non-mirrored archive site) | ||
RELEASES_TO_KEEP=2 | ||
ls | awk -F. '/KEYS/{next}{print 1000000*$1+1000*$2+$3,$1"."$2"."$3}'| sort -n | awk '{mm=$2;sub(/\.[^.]*$/,"",mm);V[mm]=$2}END{for(v in V){print V[v]}}'|tail -$RELEASES_TO_KEEP > keep | ||
(ls | grep -v KEYS; cat keep keep)|sort|uniq -u|while read oldVersion; do | ||
ls | awk -F. '/KEYS/{next}{print 1000000*$1+1000*$2+$3,$1"."$2"."$3}'| sort -n | awk '{mm=$2;sub(/\.[^.]*$/,"",mm);V[mm]=$2}END{for(v in V){print V[v]}}'|tail -$RELEASES_TO_KEEP > ../keep | ||
echo Keeping releases: $(cat ../keep) | ||
(ls | grep -v KEYS; cat ../keep ../keep)|sort|uniq -u|while read oldVersion; do | ||
set -x | ||
svn rm $oldVersion | ||
svn commit -m "remove $oldVersion from mirrors (it is still available at http://archive.apache.org/dist/geode)" | ||
set +x | ||
done | ||
rm keep | ||
rm ../keep | ||
|
||
|
||
echo "============================================================" | ||
echo "Done finalizing the release!" | ||
echo "============================================================" | ||
cd ${GEODE}/../.. | ||
echo "Don't forget to:" | ||
echo "- Go to https://github.com/${GITHUB_USERNAME}/homebrew-core/pull/new/apache-geode-${VERSION} and submit the pull request" | ||
echo "- Go to https://github.com/${GITHUB_USER}/homebrew-core/pull/new/apache-geode-${VERSION} and submit the pull request" | ||
echo "- Validate docker image: docker run -it -p 10334:10334 -p 7575:7575 -p 1099:1099 apachegeode/geode" | ||
echo "- Update mirror links for old releases that were removed from mirrors" | ||
echo "- Publish documentation to docs site" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters