Deploy your code to Catalyze. This step requires that you deploy to a Custom deploy target.
To push to Catalyze we need to have an ssh key that is registered with their application.
To do this you must generate a private/public key pair on wercker and manually add the public key to Catalyze.
- Generate a new key in wercker in the
Key management
section (application
-settings
). - Copy the public key and add it to Catalyze
- In wercker edit the Custom (Catalyze) deploy target to which you would like to deploy, and add an environment variable:
- Give the environment variable a name (remember this name, you will need it in the last step).
- Select
SSH Key pair
as the type and select the key pair which you created earlier.
- In the
catalyze-deploy-step
step in yourwercker.yml
add thekey-name
property with the value you used earlier:
deploy:
steps:
- MolecularMatch/catalyze-deploy-step:
key-name: MY_SSH_DEPLOY_KEY
CATALYZE_APP_NAME: MY_APP_NAME
In the above example the MY_SSH_DEPLOY_KEY
should match the environment variable name you used in wercker. Note: you should not prefix it with a dollar sign or post fix it with _PRIVATE
or _PUBLIC
.
key-name
(required) Specify the name of the key that should be used for this deployment.CATALYZE_APP_NAME
(required) Specify the name of the application that should be used for this deployment.CATALYZE_USER
(optional) Specify the name of the user that will be performing deployments (default: [email protected])
deploy:
steps:
- MolecularMatch/catalyze-deploy-step:
key-name: MY_DEPLOY_KEY
CATALYZE_APP_NAME: MY_APP_NAME
This wouldn't have been possible without the excellent work done by the Wercker team: https://github.com/wercker/step-heroku-deploy
The MIT License (MIT)
- Successful deploy to catalyze environment and update to README to show proper configuration
- Corrected environment variable to handle what wercker actually provides
- Initial release.