From this gist copy
- deploy.sh
- manifest.yml
Ensure deploy.sh is executable
chmod +x deploy.sh
cf api https://api.sys.dhaka.cf-app.com
cf login
cf target -o <org> -s <space>
git clone https://github.com/cloudfoundry-samples/spring-music
cd spring-music
./gradlew clean assemble
Within spring-music directory
cp build/libs/spring-music-1.0.jar <target directory coexising with deploy.sh>
-
set iterations variable to define how many times the push will happen
-
Run it
./deploy.sh