Bitbucket
Configure your Bitbucket repositories for deployments. This includes setting up access tokens, repository names, and branches.
Skitflow offer a way to connect your Bitbucket Repository to your Skitflow panel, you can use Groups Names or personal accounts.
Go to Git and select Bitbucket as the source, then you can use the following options:
- Bitbucket Username: Set the username that you want to connect to Skitflow.
- App Password: Set the app password you've created.
- Workspace(Optional): Assign a workspace name, this is useful if you want to connect to another workspace.
Follow the steps to connect your Bitbucket account to Skitflow.
- Go to
https://bitbucket.org/account/settings/app-passwords/new. - Set Label: eg.
Skitflow-Bitbucket-App. you can choose any name that you want. - In permissions make sure to select
Account: Read,Workspace membership: Read,Projects: Read,Repositories: ReadPull requests: ReadandWebhooks: Read and write. - Click on
Create. - Copy the
App Passwordand paste it in SkitflowBitbucketModal section. - Set your
Bitbucket Username. - (Optional) If you want to use Workspaces, go to
https://bitbucket.org/account/workspaces/, eg. If you haveskitflow-workspacecopy and paste it in Workspace Name, please make sure to use the slugified name, if you use names like Skitflow Workspace in this field can cause issues. - Click on
Configure Bitbucket. - If everything is correct, you can update enter to the Update Icon, and click on
Test Connectionto make sure everything is working. - Now you can use the repositories from your Bitbucket Account in
ApplicationsorDocker Composeservices.
Skitflow doesn't support Bitbucket Automatic deployments on each push you make to your repository.
Setup Automatic Deployments
You can configure automatic deployments in Skitflow for the Following Services:
- Applications
- Docker Compose
The steps are the same for both services.
- Go to either
ApplicationsorDocker Composeand go toDeploymentsTab. - Copy the
Webhook URL. - Go to your Bitbucket Account and select the repository.
- In the left menu, select
Repository Settingsand thenWebhooks. - Click on
Add Webhook. - Set any
Titleand theURLto the one you copied in the previous step. - In the Trigger section, select
Push Events. - Click on
Add Webhook. - Now you have automatic deployments enabled for the selected repository.
Clarification on Automatic Deployments
By default, Skitflow will automatically deploy your application on the Branch you have selected.
eg. Let's suppose you have a application in this way:
Repository: my-app
Branch: feature
If you try to make a push on another branch eg. main, Skitflow will not automatically deploy your application, because
your application have selected feature as the Branch.
In the case you want to have multiple applications in the same repository, eg. (development, staging, production), you can create 3 Applications in Skitflow
and select the branch in each of them.
This is very usefull if you want to have multiple environments for the same application.