Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glennmen/ploi-deploy-action
Deploy your application to Ploi with Github actions
https://github.com/glennmen/ploi-deploy-action
deploy deployment ploi
Last synced: about 2 months ago
JSON representation
Deploy your application to Ploi with Github actions
- Host: GitHub
- URL: https://github.com/glennmen/ploi-deploy-action
- Owner: Glennmen
- License: gpl-3.0
- Created: 2021-01-12T15:29:49.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-06T19:21:18.000Z (2 months ago)
- Last Synced: 2024-12-10T04:05:58.533Z (about 2 months ago)
- Topics: deploy, deployment, ploi
- Language: Shell
- Homepage:
- Size: 68.4 KB
- Stars: 43
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Ploi Deploy Action
Deploy your application to Ploi with Github actions.
This action supports both the `Deploy webhook URL` found in the site repository tab and API based deployment.## Inputs
### Webhook deployment
#### `webhook_url`
**Required** Deploy webhook URL.
_It is advised to use Github secrets to keep your webhook URL private._The webhook url can be found in your sites Repository tab.
### API deployment
#### `api_token`
**Required** Ploi API token.
_It is advised to use Github secrets to keep your API token private._The API token can be found in Profile -> API keys.
#### `server_id`
**Required** Ploi Server ID.
Server ID can be found in your servers Settings tab.
#### `site_id`
**Required** Ploi Site ID.
Site ID can be found in your sites Settings tab.
## Basic workflows
### Webhook deployment
```yaml
name: 'Deploy on push'on:
push:
branches:
- mainjobs:
ploi-deploy:
name: 'Ploi Deploy'
runs-on: ubuntu-lateststeps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2# Trigger Ploi deploy webhook
- name: Deploy
uses: Glennmen/[email protected]
with:
webhook_url: ${{ secrets.WEBHOOK_URL }}
```### API deployment
```yaml
name: 'Deploy on push'on:
push:
branches:
- mainjobs:
ploi-deploy:
name: 'Ploi Deploy'
runs-on: ubuntu-lateststeps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2# Trigger Ploi deploy api
- name: Deploy
uses: Glennmen/[email protected]
with:
api_token: ${{ secrets.API_TOKEN }}
server_id: 1
site_id: 1
```## Advanced workflows
You can find some common workflows in the [example's directory](examples/README.md).
## Future updates
* ~~Add API based deploy~~
* Flush FastCGI cache
* Restart daemon
* Restart service
* Refresh OPCacheOther suggestions are welcome, please make an issue.