To use an older release of the buildpack, you can pass the -b option specifying a tag which it is used for the version of the official buildpack for example:
cf push myAppName -b https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack.git#v2.7.0.2
You can see the releases in the following link:
https://github.com/cloudfoundry/ibm-websphere-liberty-buildpack/releases
Notice the version tag on the left side of each release.
If you want to customize on top of a specific version:
1) Clone the complete repo which include all the release tags.
2) checkout the tag i.e.
git checkout tags/<tag_name>
3) do you customization and push to your own repo/branch.
4) Push your app pointing to your new branch with your custom buildpack:
cf push my-new-app -b https://github.com/johndoe/my-buildpack.git#my-branch-name
reference:
- Download a specific tag with Git
- https://docs.cloudfoundry.org/buildpacks/custom.html