Skip to content

Commit

Permalink
Added procfile to buildpack.yml & modified script to generate a build…
Browse files Browse the repository at this point in the history
…pack package correctly.
  • Loading branch information
dmikusa committed Jun 25, 2020
1 parent 581b20b commit c20a76c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ api = "0.2"
[buildpack]
id = "com.mikusa.rust"
name = "Rust Build Pack"
version = "0.0.3"
version = "0.0.4"
homepage = "https://github.com/dmikusa/rust-cnb"

[metadata]
Expand All @@ -28,6 +28,10 @@ api = "0.2"
source_sha256 = "c31008d42861c62818622d8463211eab32cbc51cd2bd43730e0781bb334730f7"
stacks = ["io.paketo.stacks.tiny", "io.buildpacks.stacks.bionic", "org.cloudfoundry.stacks.cflinuxfs3"]

[[metadata.dependencies]]
id = "paketo-buildpacks/procfile"
image = "gcr.io/paketo-buildpacks/procfile:1.3.8"

[[order]]

[[order.group]]
Expand All @@ -36,4 +40,9 @@ api = "0.2"

[[order.group]]
id = "com.mikusa.rust-cargo"
version="0.0.2"
version="0.0.2"

[[order.group]]
id = "paketo-buildpacks/procfile"
version="1.3.8"
optional = true
2 changes: 1 addition & 1 deletion scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function buildpackage::toml::write() {
echo "-> Generating package config in ${BUILD_DIR}/package.toml..."

yj -tj < "${ROOT_DIR}/buildpack.toml" \
| jq -r '.metadata.dependencies[] | select(.id != "lifecycle") | {uri: .uri }' \
| jq -r '.metadata.dependencies[] | select(.id != "lifecycle") | {uri: .uri, image: .image}' \
| jq -s --arg uri "${BUILD_DIR}/buildpack.tgz" '. | {buildpack: {uri: $uri}, dependencies: .}' \
| yj -jt \
> "${BUILD_DIR}/package.toml"
Expand Down

0 comments on commit c20a76c

Please sign in to comment.