Skip to content

Commit

Permalink
Modify scripts/deploy to accept PXC_RELEASE arg
Browse files Browse the repository at this point in the history
- PXC_RELEASE unset (default): preserves current behavior
  of creating-and-uploading a local pxc dev release to your
  targeted bosh env.
- PXC_RELEASE=[latest|<version#>]: deploys existing version
  from bosh env. Version must already be uploaded to bosh
  env.

[#183915590](https://www.pivotaltracker.com/story/show/183915590)

Co-authored-by: Kim Bassett <[email protected]>
Co-authored-by: Kyle Ong <[email protected]>
  • Loading branch information
kimago and ohkyle committed Dec 9, 2022
1 parent c7f41d6 commit 0d04e74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ main() {
local deployment_name=${PXC_DEPLOYMENT_NAME:-pxc}
local -a deploy_opts=(
--ops-file=operations/deployment-name.yml
--ops-file=operations/dev-release.yml
--var=deployment_name="${deployment_name}"
)

if [[ -z "${PXC_RELEASE-}" ]]; then
deploy_opts+=(--ops-file=operations/dev-release.yml)
else
deploy_opts+=(--ops-file=operations/pxc-version.yml)
deploy_opts+=(--var=pxc_version=${PXC_RELEASE})
fi

if [[ ${ENABLE_CLUSTER:-true} == "true" ]]; then
deploy_opts+=(--ops-file=operations/use-clustered.yml)
deploy_opts+=(--ops-file=operations/galera-agent-tls.yml)
Expand Down

0 comments on commit 0d04e74

Please sign in to comment.