https://github.com/loft-sh/delete-space
https://github.com/loft-sh/delete-space
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loft-sh/delete-space
- Owner: loft-sh
- License: mit
- Created: 2021-09-10T14:00:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T13:51:11.000Z (about 2 years ago)
- Last Synced: 2025-02-19T07:22:21.892Z (11 months ago)
- Language: TypeScript
- Size: 1.01 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# delete-space
This is a GitHub Action to delete a space in loft. It is intended to be used with the [setup-loft GitHub Action](https://github.com/loft-sh/setup-loft) to first install the Loft CLI.
## Usage
This action will delete a Loft Space.
### Example: Delete a space named `staging` on commits to `main`.
```yaml
name: Deploy to Staging
on:
push:
branches:
- 'main'
jobs:
deploy-staging:
runs-on: ubuntu-latest
steps:
- name: Install Loft CLI
uses: loft-sh/setup-loft@main
with:
url: ${{ secrets.LOFT_URL }}
access-key: ${{ secrets.LOFT_ACCESS_KEY }}
- name: Create staging Space
uses: loft-sh/create-space@main
with:
name: staging
- name: Delete staging Space
uses: loft-sh/delete-space@main
with:
name: staging
```
## Customizing
### inputs
The following inputs can be used as `step.with` keys
| Name | Type | Description |
|---------------------|----------|------------------------------------|
| `name` | String | The name of the space to delete
| `cluster` | String | The cluster on which to delete the space (if there are multiple spaces with the same name across multiple clusters)multiple clusters)
| `project` | String | The project to use (requires Loft 3.0 and above)