Created
July 29, 2020 19:14
-
-
Save michellescripts/91dc29c1f2da7525019329c4e469b3d5 to your computer and use it in GitHub Desktop.
cf-push script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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