Skip to content

Commit

Permalink
Add heroku/go buildpack to builder:22 (#302)
Browse files Browse the repository at this point in the history
* Add heroku/go buildpack to builder:22

* Test the go-getting-started guide on builder:22

* Test go against builder-22, not builder-classic

* Add included languages to builder descriptions

* Use docker: prefix

Co-authored-by: Ed Morley <[email protected]>

* Add optional procfile buildpack for go in builder:22

Co-authored-by: Ed Morley <[email protected]>
  • Loading branch information
joshwlewis and edmorley authored Dec 6, 2022
1 parent 284a367 commit 0c18b6f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
include:
- builder: builder-classic-22
language: clojure
- builder: builder-22
language: go
- builder: builder-22
language: java
- builder: builder-22
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ builders that enable Heroku-like builds with the [`pack`](https://github.com/bui
| [`heroku/builder:22`][builder-tags] | [`heroku/heroku:22-cnb-build`][heroku-tags] | Suggested |
| [`heroku/builder-classic:22`][builder-classic-tags] | [`heroku/heroku:22-cnb-build`][heroku-tags] | Available |

[`heroku/builder`][builder-tags] builder images feature Heroku's native Cloud Native Buildpacks. These buildpacks are optimized and make use of many CNB features.
[`heroku/builder`][builder-tags] builder images feature Heroku's native Cloud Native Buildpacks. These buildpacks are optimized and make use of many CNB features. These builder images support Go, Java, Node.js, and Typescript codebases.

[`heroku/builder-classic`][builder-classic-tags] builder images feature Heroku's classic platform buildpacks, shimmed for compatibility with the Cloud Native Buildpacks specification. These buildpacks don't take advantage of many CNB features and are less optimized, but offer a wider variety of languages and legacy language feature support.
[`heroku/builder-classic`][builder-classic-tags] builder images feature Heroku's classic platform buildpacks, shimmed for compatibility with the Cloud Native Buildpacks specification. These buildpacks don't take advantage of many CNB features and are less optimized, but offer a wider variety of languages and legacy language feature support.These builder images support Clojure, Go, Gradle, Java, Node.js, PHP, Python, Ruby, Scala, and Typescript codebases.

[`heroku/buildpacks`][buildpacks-tags] builder images feature a mix of both native and shimmed Heroku Cloud Native Buildpacks. These images will not be supported in future stack versions (22 and beyond).
[`heroku/buildpacks`][buildpacks-tags] builder images feature a mix of both native and shimmed Heroku Cloud Native Buildpacks. These images will not be supported in future stack versions (22 and beyond). These builder images support Go, Gradle, Java, Node.js, PHP, Python, Ruby, Scala, and Typescript codebases.

## Usage

Expand Down
17 changes: 17 additions & 0 deletions builder-22/builder.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ version = "0.14.1"
id = "heroku/java-function"
uri = "docker://public.ecr.aws/heroku-buildpacks/heroku-java-function-buildpack@sha256:46e353cadcd941baeb0f566d7ab7b1f13c18e96223c1143dc51b258638ab9d47"

[[buildpacks]]
id = "heroku/go"
uri = "docker://docker.io/heroku/buildpack-go@sha256:fdc270c4414dc636daf29e269a67f28bb1a8c4aee89974d80b90edbdc10ae8a2"

[[buildpacks]]
id = "heroku/procfile"
uri = "docker://docker.io/heroku/procfile-cnb:2.0.0"

[[order]]
[[order.group]]
id = "heroku/nodejs-function"
Expand All @@ -43,3 +51,12 @@ version = "0.14.1"
[[order.group]]
id = "heroku/java"
version = "0.6.5"

[[order]]
[[order.group]]
id = "heroku/go"
version = "0.1.0"
[[order.group]]
id = "heroku/procfile"
version = "2.0.0"
optional = true

0 comments on commit 0c18b6f

Please sign in to comment.