#!/bin/bash -l

set -o errexit
set -o nounset
set -o pipefail

cd blob
mkdir source
tar zxf source.tar.gz -C source --strip-components=1

cd source
BUNDLE_GEMFILE=cf.Gemfile bundle
BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager --cached

# shellcheck disable=SC2035
mv *_buildpack-cached*.zip ../../buildpack-zip/

#!/bin/bash -l

set -o errexit
set -o nounset
set -o pipefail

tag=$(cat blob/tag)
git clone https://github.com/cloudfoundry/$LANGUAGE-buildpack.git source
cd source
git checkout $tag
git submodule update --init --recursive

BUNDLE_GEMFILE=cf.Gemfile bundle
BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager --cached

# shellcheck disable=SC2035
mv *_buildpack-cached*.zip ../../buildpack-zip/

Use git for offline releases
Use git for offline releases

source.tar.gz does not contain submodules (eg. compile-extensions)

Signed-off-by: Sam Smith <03a07629efb0a02c7bbe7cc340a4243da1ab861a@gmail.com>
