Skip to content

Commit

Permalink
added gh release step
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Sep 6, 2024
1 parent 35e3620 commit 04c2f43
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ignore clab state files
clab-*
pull.sh
pull.sh
notes.md
27 changes: 27 additions & 0 deletions add-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2022 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

# add gh release, this triggers email notifications to the subscribers
# use `bash add-release.sh 23.10.5`

#!/bin/bash
set -e

# REL is the short release version/tag, i.e. 23.10.5
REL=$1

# cleanup previos notes
rm -f notes.md

# if release is empty exit
if [[ -z "$REL" ]]; then
echo "release version is empty"
exit 1
fi

# template the release notes
sed "s/{{version}}/$REL/g" notes.md.j2 > notes.md

# add release
gh release create ${REL} --notes-file notes.md
9 changes: 9 additions & 0 deletions notes.md.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SR Linux {{version}} release

Pull with:

```bash
sudo -E docker pull ghcr.io/nokia/srlinux:{{version}}
```

Learn more about SR Linux at [learn.srlinux.dev](https://learn.srlinux.dev)

0 comments on commit 04c2f43

Please sign in to comment.