Skip to content

Commit 207fdf2

Browse files
committed
Add a small release script
Signed-off-by: Vincent Demeester <[email protected]>
1 parent 14420ff commit 207fdf2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

release.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bash
2+
3+
set -o errexit
4+
set -o nounset
5+
set -o pipefail
6+
7+
VERSION=$1
8+
shift
9+
CATALOGCD=${CATALOGCD:-catalog-cd}
10+
11+
TASKS="go-crane-image go-ko-image"
12+
for t in ${TASKS}; do
13+
yq e -i ".metadata.labels[\"app.kubernetes.io/version\"] = \"${VERSION}\"" ${t}/${t}.yaml
14+
done
15+
16+
git add -u || true
17+
git commit -sS -m "Prepare release $VERSION" || true
18+
19+
# Create the actual release
20+
mkdir -p release
21+
${CATALOGCD} release --output release --version="${VERSION}" ${TASKS}
22+

0 commit comments

Comments
 (0)