Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- set -u
- set -x
- set -o pipefail
- # Check that the application environment is set
- if [ ! -n "${ENVIRONMENT_NAME}" ]; then
- echo "The ENVIRONMENT_NAME environment variable must be set"
- exit 1
- fi
- #
- # Get the build version
- #
- BUILD_VERSION_FILE="./demo-app-artifact/version"
- if [ ! -f ${BUILD_VERSION_FILE} ]; then
- echo "${BUILD_VERSION_FILE} does not exists"
- exit 1
- fi
- BUILD_VERSION=$(cat ${BUILD_VERSION_FILE})
- pushd ./bundle
- cp ../demo-app-artifact/demo-app.jar demo-app.jar
- eb deploy ${ENVIRONMENT_NAME} --label "${BUILD_VERSION}"
- popd
Add Comment
Please, Sign In to add comment