2017-06-21 20:48:34 +02:00
|
|
|
|
This integration sends a notification every time a deployment is made
|
2017-06-05 19:33:24 +02:00
|
|
|
|
in an OpenShift instance.
|
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
1. {!create-stream.md!}
|
2017-06-21 20:48:34 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
1. {!download-python-bindings.md!}
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
1. Then, create a new commit including all the changes made to the
|
|
|
|
|
repository, and push it to your app.
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
1. After that, connect to the application through SSH. If you don’t know
|
|
|
|
|
how to do this, log in to your OpenShift Online account, go to your
|
|
|
|
|
application’s dashboard, and click **Want to log in to your
|
|
|
|
|
application?**. There you’ll find the app’s SSH user, address, and
|
|
|
|
|
further information on SSH, in case you need it.
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
![Connecting to application](/static/images/integrations/openshift/002.png)
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
1. {!change-zulip-config-file-indented.md!}
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
1. You can also specify which pushes will result in notifications and to
|
|
|
|
|
what stream the notifications will be sent by modifying the
|
|
|
|
|
`deployment_notice_destination` function in
|
|
|
|
|
`zulip_openshift_config.py`. By default, deployments triggered by
|
2021-09-01 00:01:37 +02:00
|
|
|
|
commits pushed to the `main`, `master`, and `test-post-receive` branches will
|
2021-03-15 23:15:01 +01:00
|
|
|
|
result in a notification to stream `deployments`.
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
1. Save the file, and symlink
|
|
|
|
|
`$OPENSHIFT_PYTHON_DIR/virtenv/share/zulip/integrations/openshift/post-receive`
|
|
|
|
|
into the `~/app-root/repo/.openshift/action_hooks` directory.
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-09-01 00:01:37 +02:00
|
|
|
|
1. Whenever you make a push to the `main` branch of your application’s
|
2021-03-15 23:15:01 +01:00
|
|
|
|
repository (or whichever branch you configured above), or if you force
|
|
|
|
|
a deployment, the Zulip OpenShift plugin will send an automated
|
|
|
|
|
notification.
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2017-06-21 20:48:34 +02:00
|
|
|
|
{!congrats.md!}
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2020-08-05 11:50:17 +02:00
|
|
|
|
![OpenShift integration message](/static/images/integrations/openshift/001.png)
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-03-15 23:15:01 +01:00
|
|
|
|
### Testing
|
2017-06-05 19:33:24 +02:00
|
|
|
|
|
2021-09-01 00:01:37 +02:00
|
|
|
|
You can test the plugin without changing your `main` branch by pushing to the `test-post-receive` branch.
|