Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bosh-deploy-with-created-release to build a valid manifest when specifying a release tarball #159

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion shared-functions
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,16 @@ function bosh_interpolate() {

if [ -n "${release_name}" ]; then
if [ -n "${release_tarball_name}" ]; then
tarball_path="${root_dir}/release/${release_tarball_name}"
version=$(tar xzf "${tarball_path}" -O release.MF | yq -r '.version // "latest"')
cat << EOF > create-provided-release.yml
---
- type: replace
path: /releases/name=${release_name}
value:
name: ${release_name}
url: file://${root_dir}/release/${release_tarball_name}
url: file://${tarball_path}
version: ${version}
EOF
else
cat << EOF > create-provided-release.yml
Expand Down