Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add stable.txt #16453

Merged
merged 1 commit into from
Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions Documentation/contributing/release/feature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ On Freeze date
pkg/policy/api/ @cilium/api
pkg/proxy/accesslog @cilium/api

#. Delete the ``stable.txt`` file.

.. code-block:: shell-session

git rm stable.txt

#. Create a new project named "X.Y.Z" to automatically track the backports
for that particular release. `Direct Link: <https://github.com/cilium/cilium/projects/new>`_

Expand Down
15 changes: 13 additions & 2 deletions contrib/release/bump-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ PROJECTS_REGEX='s/.*projects\/\([0-9]\+\).*/\1/'
ACTS_YAML=".github/cilium-actions.yml"
REMOTE="$(get_remote)"

latest_stable=""
for release in $(grep "General Announcement" README.rst \
| sed 's/.*tree\/\(v'"$MAJ_REGEX"'\).*/\1/'); do
latest=$(git describe --tags $REMOTE/$release \
| sed 's/v//' | sed 's/\('"$MIN_REGEX"'\).*/\1/')
if [ -z "$latest_stable" ]; then
# the first release in the list is the latest stable
latest_stable=$latest
echo "v$latest_stable" > stable.txt
fi
if grep -q -F $latest README.rst; then
continue
fi
Expand All @@ -39,5 +45,10 @@ for release in $(grep "General Announcement" README.rst \
sed -i 's/\(projects\/\)'$old_proj'/\1'$new_proj'/g' $ACTS_YAML
done

git add README.rst $ACTS_YAML
git commit -s -m "Update stable releases"
git add README.rst stable.txt $ACTS_YAML
if ! git diff-index --quiet HEAD -- README.rst stable.txt $ACTS_YAML; then
git commit -s -m "Update stable releases"
echo "README.rst and stable.txt updated, submit the PR now."
else
echo "No new releases found."
fi
1 change: 1 addition & 0 deletions stable.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1.10.0