diff --git a/.gitignore b/.gitignore index f66633d..9863767 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ block-test.hcl # Binaries /cachew /cachewd +cachew-playpen-overrides.hcl +.run/playpen.cachew.run.xml diff --git a/.playpen/hooks/cachewd.yaml b/.playpen/hooks/cachewd.yaml new file mode 100644 index 0000000..3c36286 --- /dev/null +++ b/.playpen/hooks/cachewd.yaml @@ -0,0 +1,13 @@ +language: go +hooks-version: 2 +environment: BLOX +build: | + TARGET_ARCH="${PLAYPEN_ARCHITECTURE}" + echo "Building cachewd for linux/${TARGET_ARCH}" + just build linux ${TARGET_ARCH} + mkdir -p ${PLAYPEN_LOCAL_TMP_DIR}/bin + cp dist/cachewd-linux-${TARGET_ARCH} ${PLAYPEN_LOCAL_TMP_DIR}/bin/${PLAYPEN_LAUNCHABLE_NAME} + chmod +x ${PLAYPEN_LOCAL_TMP_DIR}/bin/${PLAYPEN_LAUNCHABLE_NAME} + if [ -f cachew-playpen-overrides.hcl ]; then + cp cachew-playpen-overrides.hcl ${PLAYPEN_LOCAL_TMP_DIR}/ + fi