nosana-node-helper

Crates.ionosana-node-helper
lib.rsnosana-node-helper
version1.0.0
sourcesrc
created_at2023-05-03 11:47:30.70177
updated_at2023-06-08 13:36:00.779677
descriptionHelper tooling for the Nosana Node.
homepage
repository
max_upload_size
id855335
size53,477
Nosana Bot (nosana-bot)

documentation

README

Nosana Node Helper

Helper tooling for the Nosana Node.

Usage

Usage: nosana-node-helper artifact-uploader [OPTIONS] --job-id <JOB_ID> --secrets-manager <SECRETS_MANAGER> --secrets-token <SECRETS_TOKEN>

Options:
  -n, --name <NAME>                        The name of the archive [default: artifacts]
  -j, --job-id <JOB_ID>                    The build ID to download and upload artifacts
  -s, --storage <STORAGE>                  Storage backend [default: ipfs] [possible values: ipfs]
      --pinata-jwt <PINATA_JWT>            Token when using ipfs [env: PINATA_JWT=]
  -p, --path <PATH>                        Add paths to archive (can be multiple)
      --secrets-manager <SECRETS_MANAGER>  Url to secrets manager
      --secrets-token <SECRETS_TOKEN>      Token to secrets manager
  -h, --help                               Print help

Testing

To test this you can run cargo test, if you want to see all of the output of running the methods you can run the following command:

cargo test -- --nocapture

PINATA_JWT

Make sure to add your JWT to your environment in order to run Pinata storage tests.

export PINATA_JWT="yourPinataTokenHere"

Make sure to add a fresh Secrets Manager JWT to your environment in order to run secrets tests.

export SECRETS_JWT="yourSecretsTokenHere"
Commit count: 0

cargo fmt