-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from kate-goldenring/update-readme
Remove plugin artifacts and update readme to pull from releases
- Loading branch information
Showing
4 changed files
with
39 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
# Fermyon Cloud Plugin | ||
|
||
A [Spin plugin](https://github.com/fermyon/spin-plugins) for interacting with Fermyon Cloud from the [Spin CLI](https://github.com/fermyon/spin). | ||
|
||
## Installing the latest plugin | ||
|
||
```sh | ||
spin plugin install --url https://github.com/fermyon/cloud-plugin/releases/download/canary/cloud.json | ||
``` | ||
|
||
## Building and installing local changes | ||
|
||
1. Package the plugin. | ||
|
||
```sh | ||
cargo build --release | ||
cp target/release/cloud-plugin cloud | ||
tar -czvf cloud.tar.gz cloud | ||
sha256sum cloud.tar.gz | ||
rm cloud | ||
# Update cloud.json with shasum | ||
``` | ||
|
||
1. Get the manifest. | ||
|
||
```sh | ||
curl -LRO https://github.com/fermyon/cloud-plugin/releases/download/canary/cloud.json | ||
``` | ||
|
||
1. Update the manifest to modify the `url` field to point to the path to local package (i.e. `"url": "file:///path/to/cloud-plugin/plugin/cloud.tar.gz"`). | ||
|
||
1. Install the plugin, pointing to the path to the manifest. | ||
|
||
```sh | ||
spin plugin install -f ./plugin/cloud.json | ||
``` | ||
|
||
1. Run the plugin. | ||
|
||
```sh | ||
spin cloud --help | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.