From e152d132567bceec72f62dd81a152aa8a815d7ce Mon Sep 17 00:00:00 2001
From: Josh Wolf <josh@joshwolf.dev>
Date: Fri, 19 Mar 2021 14:10:32 -0600
Subject: [PATCH] ci: ensure bigbang repo is also packaged in the git repo
 releases artifacts

---
 scripts/package/gits.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/package/gits.sh b/scripts/package/gits.sh
index 389910c096..f2fb303127 100755
--- a/scripts/package/gits.sh
+++ b/scripts/package/gits.sh
@@ -3,6 +3,10 @@ set -ex
 
 mkdir -p repos/
 
+# "Package" ourselves
+# Do it this way on purpose (instead of cp or rsync) to ensure this never includes any unwanted "build" artifacts
+git -C repos/ clone -b ${CI_COMMIT_REF_NAME} ${CI_REPOSITORY_URL}
+
 # Clone core
 yq e ".*.git.repo | select(. != null) | path | .[-3] " "chart/values.yaml" | while IFS= read -r package; do
   git -C repos/ clone -b $(yq e ".${package}.git.tag" "chart/values.yaml") $(yq e ".${package}.git.repo" "chart/values.yaml")
-- 
GitLab