Skip to content

Commit

Permalink
Execute pack -v buildpack package command
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Aug 30, 2024
1 parent 8e6a369 commit 4e001e7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/install_buildpack_testing_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ RESET='\033[0m' # Reset color to default
BINARY_DIR="./tmp"
SOURCE_PATH="."
BP_DIR=test-buildpack
## TODO: To be defined as parameter
PACKAGE="quay.io/ch007m"

print::colored_msg "${GREEN}" "Clean up folders"
rm -rf $BP_DIR
Expand Down Expand Up @@ -230,7 +232,11 @@ if [ -f "${PACKAGE_FILE}" ]; then
printf '[buildpack]\nuri = "%s"\n\n[platform]\nos = "%s"\n' "${SOURCE_PATH}/buildpack" "${OS}" >> "${SOURCE_PATH}/buildpack/package.toml"
fi

cd ${SOURCE_PATH}/buildpack
#ls -la ${SOURCE_PATH}/buildpack
cat ${SOURCE_PATH}/buildpack/buildpack.toml
cat ${SOURCE_PATH}/buildpack/package.toml
cat buildpack.toml
cat package.toml

pack -v buildpack package \
"${PACKAGE}:${VERSION}" \
--config package.toml # --publish

0 comments on commit 4e001e7

Please sign in to comment.