Skip to content

Commit

Permalink
Merge pull request #528 from paketo-buildpacks/fix-logic
Browse files Browse the repository at this point in the history
Fix logic on package-buildpack.sh
  • Loading branch information
Daniel Mikusa authored Jan 28, 2022
2 parents 301eb69 + fdb054a commit 7ab78da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions octo/package-buildpack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

set -euo pipefail

if [[ -n "${PUBLISH+x}" ]]; then
if [[ "${PUBLISH:-x}" == "true" ]]; then
pack buildpack package \
"${PACKAGE}:${VERSION}" \
--config "${HOME}"/package.toml \
--publish

if [ ! -z ${VERSION_MINOR} ] && [ ! -z ${VERSION_MAJOR} ]; then
if [[ -n ${VERSION_MINOR:-} && -n ${VERSION_MAJOR:-} ]]; then
crane tag "${PACKAGE}:${VERSION}" "${VERSION_MINOR}"
crane tag "${PACKAGE}:${VERSION}" "${VERSION_MAJOR}"
fi
Expand Down
Loading

0 comments on commit 7ab78da

Please sign in to comment.