Guest User

Untitled

a guest
Dec 11th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -e
  4. set -u
  5. set -x
  6. set -o pipefail
  7.  
  8. # Check that the application environment is set
  9. if [ ! -n "${ENVIRONMENT_NAME}" ]; then
  10. echo "The ENVIRONMENT_NAME environment variable must be set"
  11. exit 1
  12. fi
  13.  
  14. #
  15. # Get the build version
  16. #
  17. BUILD_VERSION_FILE="./demo-app-artifact/version"
  18. if [ ! -f ${BUILD_VERSION_FILE} ]; then
  19. echo "${BUILD_VERSION_FILE} does not exists"
  20. exit 1
  21. fi
  22. BUILD_VERSION=$(cat ${BUILD_VERSION_FILE})
  23.  
  24. pushd ./bundle
  25. cp ../demo-app-artifact/demo-app.jar demo-app.jar
  26. eb deploy ${ENVIRONMENT_NAME} --label "${BUILD_VERSION}"
  27. popd
Add Comment
Please, Sign In to add comment