Skip to content

Commit

Permalink
Don't create binaries in working directory
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Auerbeck <[email protected]>
  • Loading branch information
tylerauerbeck committed Oct 19, 2022
1 parent 01da93b commit c61691c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions hooks/command
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ set -ux

for chartfile in $(find . -name Chart.yaml -type f); do
chartdir=$(dirname "$chartfile")
deplength=$(./yq '.dependencies | length' "$chartfile")
deplength=$(/tmp/yq '.dependencies | length' "$chartfile")
if [ "$deplength" -gt "0" ]; then
pushd "$chartdir"
./helm dependency update
/tmp/helm dependency update
popd
else
echo "Skipping $chartfile since no dependencies were found."
Expand All @@ -25,4 +25,4 @@ if [ $? -ne 0 ]; then
git checkout -b "${BUILDKITE_BRANCH}"
git commit -m "Update Helm Tarballs"
git push origin "${BUILDKITE_BRANCH}"
fi
fi
10 changes: 5 additions & 5 deletions hooks/pre-command
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
echo "--- :yaml: Installing yq"
curl -Lo ./yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"
chmod +x ./yq
curl -Lo /tmp/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64"
chmod +x /tmp/yq

echo "--- :helm Install helm"
curl -Lo ./helm.tar.gz "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz"
tar --strip-components 1 --extract --file=./helm.tar.gz linux-amd64/helm
chmod +x ./helm
curl -Lo /tmp/helm.tar.gz "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz"
tar --strip-components 1 --extract --file=/tmp/helm.tar.gz linux-amd64/helm
chmod +x /tmp/helm

0 comments on commit c61691c

Please sign in to comment.