Skip to content

Instantly share code, notes, and snippets.

View ryanbsaunders's full-sized avatar
💭
🌯

Ryan Saunders ryanbsaunders

💭
🌯
View GitHub Profile
@ryanbsaunders
ryanbsaunders / build_artifacts.sh
Last active February 7, 2022 14:53
Build Splunk app archives and sync to Amazon S3 for use with the Splunk Operator for Kubernetes App Framework
#!/usr/bin/env bash
SRC="splunk-hf-inputs-apps"
DEST="splunk-artifacts"
mkdir -p $DEST/$SRC
for DIR in $SRC/*
do
[ -d "${DIR}" ] && COPYFILE_DISABLE=1 tar -zcvf ${DEST}/${SRC}/$(basename "${DIR}").tgz -C ${SRC} $(basename "${DIR}")