Nadleeh Usage
Install or Upgrade
If you are root user, you can run the following command:
If your are not root user, you can run the following command:
Uninstall
Workflows
A workflow is a YAML file that contains a list of tasks to be executed. It can be stored in the local file system or in a remote repository. See Example for more details.
Local Workflow
A local workflow is a workflow file that is stored in the local file system.
Remote Workflow
A remote workflow is a workflow file that is stored in a remote repository. It supports the following providers:
-
GitHub provider
Where the github providers is a file defined in the
~/.nadleeh/providers/github, with the following content:YAMLtype: github # required server: https://github.com # optional. Required for enterprise github cred: # requried for private repository type: Bearer username: "" password: <token> # you can specify the owner and repo, or specify in the workflow file path owner: <owner> # optional repo: <repo> # optional -
HTTPs provider
Where the https providers is a file defined in the
~/.nadleeh/providers/https, with the following content:
Workflow Config file
The workflow config file is a YAML file that contains the workflow configuration. For example,
# workflow.wf
#!/usr/bin/env -S nadleeh wf
workflow: <owner>/<repo>/path/to/workflow.yml
provider: auth-github # optional
private: /path/workflow-private.pem # optional
args: # optional
arg1: value1
arg2: value2
You can run it with:
chmod +x workflow.wf
# with arguments
./workflow.wf -a ARG1=value1 -a ARG2=value2
# or without arguments
./workflow.wf
This can create workflow commands shortcuts.
Example
-
Workflow file from nadleehz/workflows repository - Check the environment and arguments
The extension
.ymlcan be omitted. Thenadleehwill automatically add it..yamlis also a valid extension. The providergithubdoesn't need to be exists for public GitHub repository. -
Workflow file from non-offical repository