Skip to content

Commit

Permalink
test module definition
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed May 16, 2024
1 parent 9c8e6b7 commit 2dc9389
Show file tree
Hide file tree
Showing 20 changed files with 601 additions and 833 deletions.
54 changes: 0 additions & 54 deletions .buildkite/env-scripts/env.sh

This file was deleted.

37 changes: 0 additions & 37 deletions .buildkite/env-scripts/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,40 +102,3 @@ set_git_config() {
git config user.name "${GITHUB_USERNAME_SECRET}"
git config user.email "${GITHUB_EMAIL_SECRET}"
}

changeset_applies() {
local changeset=$1
if are_files_changed "$changeset"; then
echo true
else
echo false
fi
}

unset_secrets () {
for var in $(printenv | sed 's;=.*;;' | sort); do
if [[ "$var" == *_SECRET || "$var" == *_TOKEN ]]; then
unset "$var"
fi
done
}

google_cloud_logout_active_account() {
local active_account=$(gcloud auth list --filter=status:ACTIVE --format="value(account)" 2>/dev/null)
if [[ -n "$active_account" && -n "${GOOGLE_APPLICATION_CREDENTIALS+x}" ]]; then
echo "Logging out from GCP for active account"
gcloud auth revoke $active_account > /dev/null 2>&1
else
echo "No active GCP accounts found."
fi
if [ -n "${GOOGLE_APPLICATION_CREDENTIALS+x}" ]; then
unset GOOGLE_APPLICATION_CREDENTIALS
cleanup
fi
}

cleanup() {
echo "Deleting temporary files..."
rm -rf ${BIN}/${TMP_FOLDER}.*
echo "Done."
}
30 changes: 0 additions & 30 deletions .buildkite/filebeat/scripts/packaging/package-util.sh

This file was deleted.

49 changes: 0 additions & 49 deletions .buildkite/filebeat/scripts/packaging/package.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .buildkite/filebeat/scripts/packaging/packaging-env.sh

This file was deleted.

Loading

0 comments on commit 2dc9389

Please sign in to comment.