Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

spin-cli execute pipeline with required artifacts #2126

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions guides/spin/pipeline/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,34 @@ You can pass in paramaters as key-value pairs with the `-p` flag as such:
spin pipeline execute --application my-app --name my-pipeline -p foo=bar,baz=qux
```

If your pipeline requires artifacts for execution, you can create a JSON-formatted
artifact file and pass it with the `-t` flag as in example below:

```bash
spin pipeline execute --application my-app --name my-pipeline -t my-artifact.json
```

artifact.json example:

```json
{
"account":"docker-hub",
"organization":"my-docker-hub-organization",
"registry":"index.docker.io",
"repository":"my-docker-hub-organization/my-image",
"tag":"latest",
"type":"manual",
"artifacts":[
{
"type":"docker/image",
"name":"index.docker.io/my-docker-hub-organization/my-image",
"version":"latest",
"reference":"index.docker.io/my-docker-hub-organization/my-image:latest"
}
]
}
```

### Delete a pipeline with `delete`

```bash
Expand Down