Skip to content

Commit

Permalink
Merge pull request #6 from kate-goldenring/update-readme
Browse files Browse the repository at this point in the history
Remove plugin artifacts and update readme to pull from releases
  • Loading branch information
kate-goldenring committed May 25, 2023
2 parents 95013c1 + 188ecb3 commit 6df7740
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 42 deletions.
39 changes: 39 additions & 0 deletions README.md
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
```
26 changes: 0 additions & 26 deletions plugin/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions plugin/cloud.json

This file was deleted.

Binary file removed plugin/cloud.tar.gz
Binary file not shown.

0 comments on commit 6df7740

Please sign in to comment.