Heroku Buildpack R Build - [Second Edition][build2]

January 15, 2025 ยท View on GitHub

CI

Build for the heroku-buildpack-r buildpack.

Prerequisites

Usage

To build, test and publish artifacts for the buildpack:

make build
make test
make publish

Variables

The following build variables are available:

VariableDefaultNotes
HEROKU_STACK24Corresponds to numeric suffix of the Heroku Stack. Valid values include 18, 20, 22 and 24.
UBUNTU_IMAGEubuntu:24.04The docker image for the Ubuntu image. Should correspond with the Ubuntu version of the Heroku Stack.
R_VERSION4.4.2The version of R to be built.
CRAN_VERSIONcran40The CRAN repository version.
BUILDPACK_VERSIONlatestVersion of the buildpack. This maps to the directory used on S3. Valid values include at least latest and test.

E.g. To build for the heroku-20 stack

export HEROKU_STACK=20
make build
make test
make publish

Credits

License

MIT License. Copyright (c) 2020 Chris Stefano. See LICENSE for details.