Skip to content

Commit

Permalink
Merge pull request rook#13105 from subhamkrai/fix-ci-csv-mac
Browse files Browse the repository at this point in the history
ci: skip csv generation for mac
  • Loading branch information
travisn authored Oct 25, 2023
2 parents 53d6a82 + c4cf300 commit 38e1aed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build/csv/csv-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ function generate_csv() {
# This change are just to make the CSV file as it was earlier and as ocs-operator reads.
# Skipping this change for darwin since `sed -i` doesn't work with darwin properly.
# and the csv is not ever needed in the mac builds.
if [[ "$OSTYPE" != "darwin"* ]]; then
sed -i 's/image: rook\/ceph:.*/image: {{.RookOperatorImage}}/g' "$CSV_FILE_NAME"
sed -i 's/name: rook-ceph.v.*/name: rook-ceph.v{{.RookOperatorCsvVersion}}/g' "$CSV_FILE_NAME"
sed -i 's/version: 0.0.0/version: {{.RookOperatorCsvVersion}}/g' "$CSV_FILE_NAME"
if [[ "$OSTYPE" == "darwin"* ]]; then
return
fi

sed -i 's/image: rook\/ceph:.*/image: {{.RookOperatorImage}}/g' "$CSV_FILE_NAME"
sed -i 's/name: rook-ceph.v.*/name: rook-ceph.v{{.RookOperatorCsvVersion}}/g' "$CSV_FILE_NAME"
sed -i 's/version: 0.0.0/version: {{.RookOperatorCsvVersion}}/g' "$CSV_FILE_NAME"

mv "$CSV_FILE_NAME" "../../build/csv/"
mv "../../build/csv/ceph/$PLATFORM/manifests/"* "../../build/csv/ceph/"
rm -rf "../../build/csv/ceph/$PLATFORM"
Expand Down

0 comments on commit 38e1aed

Please sign in to comment.