diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81bc42d..52c2fb9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -134,24 +134,38 @@ jobs: run: cargo libcnb package --target ${{ matrix.target }} - name: "PRINT: Getting started guide output" run: | - if [ "${{ matrix.guide }}" == "heroku/java-getting-started" ]; then - pack build my-image --force-color --builder heroku/builder:24 --trust-extra-buildpacks --path tmp/guide --pull-policy never \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_jvm \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_java \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_maven \ - - elif [ "${{ matrix.guide }}" == "heroku/gradle-getting-started" ]; then - pack build my-image --force-color --builder heroku/builder:24 --trust-extra-buildpacks --path tmp/guide --pull-policy never \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_jvm \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_gradle \ - - elif [ "${{ matrix.guide }}" == "heroku/scala-getting-started" ]; then - pack build my-image --force-color --builder heroku/builder:24 --trust-extra-buildpacks --path tmp/guide --pull-policy never \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_jvm \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_sbt \ - --buildpack packaged/${{ matrix.target }}/debug/heroku_scala \ + set -euo pipefail + PACK_CMD="pack build my-image --force-color --builder heroku/builder:24 --trust-extra-buildpacks --path tmp/guide --pull-policy never" + if [ "${{ matrix.guide }}" == "heroku/java-getting-started" ]; then + PACK_CMD+=$(cat <