Skip to content

Commit

Permalink
Adds missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Jun 7, 2024
1 parent 3a8cfef commit 20cb27a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ci/infrastructure/scripts/utils.source.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

bosh_upload_stemcell_opts="${BOSH_UPLOAD_STEMCELL_OPTS:-""}"

function find_or_upload_stemcell_from(){
deployment_manifest=$1
# Determine if we need to upload a stemcell at this point.
Expand All @@ -18,6 +19,18 @@ function find_or_upload_stemcell_from(){
fi
}

# upload release from a bosh.io resource
function upload_release(){
release_dir=$1

pushd "${release_dir}" > /dev/null || exit
echo "Uploading release from ${release_dir}"
echo "Listing files in ${release_dir}:"
log $(ls -1 *.tgz)
bosh -n upload-release release.tgz
popd > /dev/null || exit
}

function load_bbl_vars() {
if [ -z "${bbl_state_path}" ]; then
echo "ERROR: bbl_state_path is not set"
Expand Down

0 comments on commit 20cb27a

Please sign in to comment.