Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/factorial-io/phab-lagoon-plugin
a Phabalicious plugin to integrate with the lagoon cli
https://github.com/factorial-io/phab-lagoon-plugin
lagoon phabalicious
Last synced: 18 days ago
JSON representation
a Phabalicious plugin to integrate with the lagoon cli
- Host: GitHub
- URL: https://github.com/factorial-io/phab-lagoon-plugin
- Owner: factorial-io
- Created: 2021-10-26T21:33:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T07:39:47.000Z (3 months ago)
- Last Synced: 2025-01-04T03:37:38.071Z (21 days ago)
- Topics: lagoon, phabalicious
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# phab-lagoon-plugin
A phabalicious plugin to integrate with lagoon cli. The plugin provides a new command to show the states of the latest deployments in the CLI
## Prerequisites
You need to install the lagoon cli from [here](https://github.com/uselagoon/lagoon-cli)
## Installation
```
composer require --dev factorial-io/phab-lagoon-plugin
```## Needed configuration in the fabfile
You need to provide the name of the lagoon project via:
```yaml
hosts:
config-a:
.
.
.
lagoon:
project: the-lagoon-project-name
```## Customize configuration
If you need to add options to the `lagoon`-command you can add the following to the root of the fabfile:
```
lagoonOptions:
- -i
- /home/my-user-name/.ssh/my-private-key
```
## Provided commands### Show the list deployments
The command `list:deployments` will list the latest deployments for a specific configuration or for all lagoon-based configurations:
```shell
phab lagoon list:deployments
phab lagoon list:deployments --config my-config
```### Trigger a new deployment
The command `deploy:latest` will trigger a new deployent for a given configuration and print out the new deployment similar to `latest:deployments`
```shell
phab -cmyconfig lagoon deploy:latest
```