Skip to content

Instantly share code, notes, and snippets.

@michellescripts
Created July 29, 2020 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michellescripts/91dc29c1f2da7525019329c4e469b3d5 to your computer and use it in GitHub Desktop.
Save michellescripts/91dc29c1f2da7525019329c4e469b3d5 to your computer and use it in GitHub Desktop.
cf-push script
#!/usr/bin/env bash
set -xe
pushd ${PROJECT_DIR}
CURRENT_SPACE=$(cf target | grep space | cut -d":" -f2 | tr -d '[:space:]')
./gradlew clean build -x test && \
cf push -f cf/manifest.yml -p "./app/build/libs/app-0.0.1-SNAPSHOT.jar" --vars-file "cf/var-files/$CURRENT_SPACE.yml"
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment