https://github.com/porter-dev/porter-delete-preview-action
Action for deleting a Porter preview environment, meant to be called on PR closed.
https://github.com/porter-dev/porter-delete-preview-action
Last synced: about 1 year ago
JSON representation
Action for deleting a Porter preview environment, meant to be called on PR closed.
- Host: GitHub
- URL: https://github.com/porter-dev/porter-delete-preview-action
- Owner: porter-dev
- Created: 2021-12-13T17:33:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-14T20:51:23.000Z (almost 2 years ago)
- Last Synced: 2025-02-16T16:56:52.030Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# porter-preview-action
This Github action creates a new preview environment in Porter.
## Usage
```yaml
steps:
- name: Checkout code
uses: actions/checkout@v2.3.4
- name: Create Porter preview environment
uses: porter-dev/porter-delete-preview-action@v0.1.0
with:
cluster: 1234
project: 4321
token: ${{ secrets.PORTER_TOKEN }}
namespace: pr-${{ github.event.pull_request.number }}
installation_id: 12344321
```
## Configuration Options
The possible inputs are:
- `token`: (string, required): Token for Porter authentication.
- `project`: (number, required): Project ID of Porter project.
- `cluster`: (number, required): Cluster ID of Porter cluster.
- `namespace`: (string, required): Namespace of the application (default "default")
- `installation_id`: (number, required): The installation ID for the Github app which manages preview envs