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_VERSIONvariable 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.ymlundercf-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_USERNAMEandCF_ORGwith your username and organization name (for a personal bluemix account this is typically your email address). -
set the value of
CF_SPACEto 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_NAMEandTEST_ACCEPTANCE_APP_HOSTNAMEto any unique values that are valid for the test app domain (eg. eu-gb.mybluemix.net).
-
-
Source
.envto 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-deploythat should be tested is currently installed. -
Set the
CF_PASSWORDvariable in your shell. On an interactive shell, runread -s CF_PASSWORDand type in your password followed by return. Avoid usingexportwith 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.