Skip to content

Commit da762e7

Browse files
committed
add how to publish plugins
1 parent 1192b2c commit da762e7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/tutorial-basics/create-your-own-plugin.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,20 @@ fluentci run target/wasm32-unknown-unknown/release/*.wasm hello World!
8888
```
8989

9090
This will build the plugin and run it with the arguments `World!`, printing `Hello World!`.
91+
92+
## Publishing the plugin
93+
94+
Run the following command to publish the plugin:
95+
96+
```bash
97+
fluentci login
98+
fluentci publish --wasm
99+
```
100+
101+
Now your plugin is published and can be used in your pipelines like any other plugin:
102+
103+
```bash
104+
fluentci run --wasm <your-plugin> hello World!
105+
```
106+
107+
Note that `fluentci run` can run wasm plugin from local path, http(s) url or from any OCI registry that supports Wasm (ghcr.io, azurecr.io, gcr.io).

0 commit comments

Comments
 (0)