Before making a public release, we should test for a couple of days by pushing to the garage plugin repo. This will be done automatically by the Bluemix DevOps Pipeline after step 2.
-
Check the output of the latest build is green.
-
Edit the
PLUGIN_VERSION
variable in.env
-
Tag a new revision using semver:
git tag vX.X.X
-
git push --tags
(to github) -
Create a new github release
-
Add brief description and attach all the binaries from the garage plugin repo
-
Follow the instructions for submitting a plugin You need to update the following in
repo-index.yml
undercf-blue-green-deploy
:- version
- updated timestamp
- url - this should be
https://github.com/bluemixgaragelondon/new_plugin/releases/download/vX.X.X/blue-green-deploy.PLATFORM
- sum - copy from the garage staging repo as this version will have passed all of the testing.
You can run the acceptance tests on any cloud foundry installation by following these steps:
-
Edit
.env
:-
Update the
CF_URL="api.eu-gb.bluemix.net"
to match your cloud foundry api url. -
replace the values of
CF_USERNAME
andCF_ORG
with your username and organization name (for a personal bluemix account this is typically your email address). -
set the value of
CF_SPACE
to the name of a space in your org where the test should run. If it does not exist it will be created. -
set the value of
TEST_ACCEPTANCE_APP_NAME
andTEST_ACCEPTANCE_APP_HOSTNAME
to any unique values that are valid for the test app domain (eg. eu-gb.mybluemix.net).
-
-
Source
.env
to your shell. -
Edit
acceptance/app/manifest.yml
. It governs the example app that is pushed during the acceptance test.-
Either remove the
hosts:
section, or provide at least one unique hostname. -
Provide at least one domain. In the
domains:
section, use any domain that is available to your cloud foundry org/space, eg.eu-gb.mybluemix.net
. -
The remaining fields can be left unchanged.
-
-
Make sure that the version of
blue-green-deploy
that should be tested is currently installed. -
Set the
CF_PASSWORD
variable in your shell. On an interactive shell, runread -s CF_PASSWORD
and type in your password followed by return. Avoid usingexport
with this field, as any sub-shell could then read your password. -
To run the acceptance tests:
CF_PASSWORD=$CF_PASSWORD script/test_acceptance
. -
If the tests passed, there should be a message similar to
ACCEPTANCE TESTS PASSED!
printed when the test has finished. The exit value is 0 for a successful test.