Skip to content

Commit

Permalink
- yml testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellh0079 committed Aug 22, 2023
1 parent f2a06f4 commit 1974994
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}


Expand Down

0 comments on commit 1974994

Please sign in to comment.