Slack integration setup»
If you want to use the Slack integration in your self-hosting instance, you need to create your own Slack app and add its details to the config.json file before running the self-hosting installer. This section explains how to do that, along with describing limitations of the Slack integration in self-hosting.
Known Limitations»
The Slack integration relies on Slack being able to communicate with Spacelift in order to provide support for Slash commands. This means that Slack must be able to access your Spacelift load balancer in order for it to be able to make requests to https://<your-spacelift-domain>/webhooks/slack
.
This means that if you are using an internal load balancer for Spacelift, Slack will not be able to access this endpoint.
Creating your Slack app»
First, create a new Slack app in your workspace by navigating to https://api.slack.com/apps and following these instructions:
- Click "Create New App"
- Choose "From an app manifest"
- Select your workspace
- Paste following manifest, replacing
<your-domain>
with the domain you want to host the self-hosted Spacelift instance on.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
Configuring the Spacelift installer»
Once it's done, you just need to copy the relevant information from the "Basic Information" tab of your Slack App to the configuration file:
1 2 3 4 5 6 7 8 |
|
Once you have populated your configuration, just run the installer as described in the installation guide.
After the installation script finishes. You can now go to your self-hosted Spacelift instance, to Settings -> Slack and install the Slack app into your workspace.