From 197499428c218799b7d0638d442ea7212d8ceab7 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Tue, 22 Aug 2023 12:36:17 -0500 Subject: [PATCH] - yml testing --- create_release.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/create_release.sh b/create_release.sh index 4d18d5d..7cb4cb0 100644 --- a/create_release.sh +++ b/create_release.sh @@ -15,19 +15,18 @@ export RELEASE_NAME=`basename $GITHUB_REPO` ## Build TF modules that require source building function create_zip_file() { - BUILD_DIR=/tmp/${RELEASE_NAME} DESTINATION_DIR=${PWD}/dist - rm -rf ${DESTINATION_DIR} - mkdir -p ${BUILD_DIR} ${DESTINATION_DIR} - cp -r modules ${BUILD_DIR} - cp package.zip ${BUILD_DIR} - cp *tf ${BUILD_DIR} - cd ${BUILD_DIR} - zip -r9 ${RELEASE_NAME}.zip . - mv ${RELEASE_NAME}.zip ${DESTINATION_DIR}/. - cd $DESTINATION_DIR - rm -rf ${BUILD_DIR} + rm -rf "${DESTINATION_DIR}" + mkdir -p "${BUILD_DIR}" "${DESTINATION_DIR}" +# cp -r modules ${BUILD_DIR} + cp opensearch_package.zip "${BUILD_DIR}" + cp -- *tf "${BUILD_DIR}" + cd "${BUILD_DIR}" + zip -r9 "${RELEASE_NAME}".zip . + mv "${RELEASE_NAME}".zip "${DESTINATION_DIR}"/. + cd "$DESTINATION_DIR" + rm -rf "${BUILD_DIR}" }