owncloudcli

1.0.5 • Public • Published

Simple CLI to upload CI/CD pipeline artifacts

An example Gitlab usage (gitlab-ci.yml) is...

copy artifacts:
  stage: deploy
  dependencies:
    - "build packages"
  script:
    - |
      for file in `find out/make \( -name "*.exe" -o -name "*.dmg" -o -name "*.deb" -o -name "*.rpm" \)`; do
        dest=$(basename $file)
        npx owncloudcli upload $file /loe/$dest
      done

Help Output:

./owncloudCLI.js help
OWNCLOUD_USERNAME env var is unset
OWNCLOUD_PASSWORD env var is unset
OWNCLOUD_URL env var is unset

owncloudcli <cmd> [args]

Commands:
  owncloudcli upload <source> <dest>  Upload source file to owncloud
                                      destination.

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Note that the ownlcloud env vars OWNCLOUD_USERNAME, OWNCLOUD_PASSWORD, and OWNCLOUD_URL must be set in your CI/CD config. Tested on Gitlab but there's no reason it should not work on Github or Jenkins or whatever...

/owncloudcli/

    Package Sidebar

    Install

    npm i owncloudcli

    Weekly Downloads

    1

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    4.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • 667