Skip to content

Commit 00b4007

Browse files
committed
releas.sh: make sure release folder is always clean
Signed-off-by: Vincent Demeester <[email protected]>
1 parent d6fb15d commit 00b4007

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ VERSION=$1
88
shift
99
CATALOGCD=${CATALOGCD:-catalog-cd}
1010

11+
rm -fR release || true
12+
mkdir -p release
13+
1114
TASKS="go-crane-image go-ko-image"
1215
for t in ${TASKS}; do
1316
yq e -i ".metadata.labels[\"app.kubernetes.io/version\"] = \"${VERSION}\"" ${t}/${t}.yaml
@@ -18,7 +21,6 @@ git commit -sS -m "Prepare release $VERSION" || true
1821
git push || true
1922

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

2426
git tag v${VERSION}

0 commit comments

Comments
 (0)