Skip to content

Commit

Permalink
Add headers to CSV build file
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Haiducek <[email protected]>
  • Loading branch information
dhaiducek committed Sep 20, 2024
1 parent fa6e0f0 commit e916e64
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ build-and-package: build-binaries package-binaries
.PHONY: clone-repos
clone-repos:
while IFS=, read -r git_url build_cmd build_dir; do \
git clone --branch=${RELEASE_TAG} --depth=1 $${git_url} $(REMOTE_SOURCES_DIR)/$${git_url##*/}/$(REMOTE_SOURCES_SUBDIR); \
if [[ "$${git_url}" != "GIT REPO URL" ]]; then \
git clone --branch=${RELEASE_TAG} --depth=1 $${git_url} $(REMOTE_SOURCES_DIR)/$${git_url##*/}/$(REMOTE_SOURCES_SUBDIR); \
fi; \
done < ./build/cli_map.csv

.PHONY: build-binaries
Expand Down
4 changes: 4 additions & 0 deletions build/cli-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ REMOTE_SOURCES_SUBDIR=${REMOTE_SOURCES_SUBDIR:-}
BUILD_DIR=${BUILD_DIR:-${SCRIPT_DIR}}

while IFS=, read -r git_url build_cmd build_dir; do
if [[ "${git_url}" == "GIT REPO URL" ]]; then
continue
fi

git_repo=${git_url##*/}

cd "${REMOTE_SOURCES_DIR}/${git_repo}/${REMOTE_SOURCES_SUBDIR}"
Expand Down
1 change: 1 addition & 0 deletions build/cli_map.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
GIT REPO URL,BUILD CMD,OUTPUT DIR
https://github.com/stolostron/policy-cli,make build-release,build/_output
https://github.com/stolostron/policy-generator-plugin,make build-release,build_output

0 comments on commit e916e64

Please sign in to comment.