https://github.com/willyallop/bp-deploy
A simple Wordpress plugin to trigger Bitbucket pipelines.
https://github.com/willyallop/bp-deploy
bitbucket-pipelines wordpress wordpress-plugin
Last synced: 2 months ago
JSON representation
A simple Wordpress plugin to trigger Bitbucket pipelines.
- Host: GitHub
- URL: https://github.com/willyallop/bp-deploy
- Owner: WillYallop
- Created: 2022-09-01T21:00:45.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T19:45:42.000Z (almost 4 years ago)
- Last Synced: 2025-03-06T07:31:57.634Z (over 1 year ago)
- Topics: bitbucket-pipelines, wordpress, wordpress-plugin
- Language: TypeScript
- Homepage:
- Size: 624 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BP Deploy - v1.0.2
BP Deploy is a simple Wordpress plugin to trigger Bitbucket pipelines. This plugin enables you to trigger a pipeline, view trigger history and configure the target repository, workspace and branch for your pipeline trigger.
## Getting started
1. Enable pipelines in you Bitbucket repository!
2. Create a pipeline that triggers on a commit to a branch. Bellow is an example.
```yml
pipelines:
branches:
master:
- step:
script:
- echo "This script runs only on commit to the main branch."
```
3. Create an app password. Navigate to your Bitbucket "Personal settings" and then to the "App passwords" tab. You will need this password later so keep note of it.
4. Clone the repository into your Wordpress plugin directory.
5. In your wp-config file define the BP_APP_PASSWORD variable for the app password you created in step 3. `define('BP_APP_PASSWORD', 'THE_VALUE');`.
6. Activate the plugin, and navigate to its settings tab. Fill in the fields.
7. You are ready to trigger deployments.
## Notes
- Uninstalling the plugin will delete the deployment history.
- This plugin only supports pipelines that trigger on commits to a branch.