Skip to content

Commit

Permalink
Add a small release script
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Oct 19, 2023
1 parent 14420ff commit 207fdf2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

VERSION=$1
shift
CATALOGCD=${CATALOGCD:-catalog-cd}

TASKS="go-crane-image go-ko-image"
for t in ${TASKS}; do
yq e -i ".metadata.labels[\"app.kubernetes.io/version\"] = \"${VERSION}\"" ${t}/${t}.yaml
done

git add -u || true
git commit -sS -m "Prepare release $VERSION" || true

# Create the actual release
mkdir -p release
${CATALOGCD} release --output release --version="${VERSION}" ${TASKS}

0 comments on commit 207fdf2

Please sign in to comment.