Skip to main content

No project description provided

Project description

dh

DeployHub's CLI using the dhapi module.

Arguments:

ACTION - one of the following

  • deploy - deploy the application to the environment

    • Usage:

      --dhurl --dhuser --dhpass --appname --appversion (optional) --deployenv

  • approve - approve the application version

    • Usage:

      --dhurl --dhuser --dhpass --appname --appversion (optional)

  • move - move the application version using the supplied task

    • Usage:

      --dhurl --dhuser --dhpass --appname --appversion (optional) --from_domain --task

  • updatecomp - create/replace the component version for the application verion

    • Usage:

      --dhurl --dhuser --dhpass --compname --compvariant (optional) --compversion (optional) --autocompinc (optional) --appname (optional) --appversion (optional) --autoappinc (optional) --compattr --consumes (optional) --provides (optional)

    • Predefined Key/Values:

      • BuildId - Identifier for the CI job
      • BuildNumber - Build number for the CI job
      • BuildUrl - url for the CI job
      • Chart - Helm Chart for the component
      • ChartNamespace - Name space for the component to be deployed to
      • ChartRepo - Helm Chart Repo Name
      • ChartRepoUrl - Helm Chart Repo Url
      • ChartVersion - Helm Chart version
      • CustomAction - Custom Action to assign to the Component
      • DockerBuildDate - Timestamp when the image was created
      • DockerRepo - Registry which the image was pushed to
      • DockerSha - Digest for the image
      • DockerTag - Tag for the image
      • GitBranch - Git branch in the git repo
      • GitCommit - Git commit that triggered the CI job
      • GitRepo - Git repo that triggered the CI job
      • GitTag - Git tag in the git repo
      • GitUrl - Full url to the git repo
      • operator - Operator name
      • Readme - Readme location in the Git Repo
      • ServiceOwner - Owner of the Service
      • ServiceOwnerEmail - Email for the Owner of the Service
      • ServiceOwnerPhone - Phone number for the Owner of the Service
  • assign - assigns a component version to an application verion

    • Usage:

      --dhurl --dhuser --dhpass --compname --compvariant (optional) --compversion (optional) --appname --appversion (optional)

  • kv - assigns the key/values pairs to the component verion

    • Usage:

      --dhurl --dhuser --dhpass --compname --compvariant (optional) --compversion (optional) --kvconfig

  • envscript - creates a bash file from the component toml file

    • Usage:

      --envvars --envvars_sh

  • export - exports a domain including all objects to stdout

    • Usage:

      --dhurl --dhuser --dhpass --from_dom

  • import - imports the export file into the new domain

    • Usage:

      --dhurl --dhuser --dhpass --from_dom --to_dom

    Parameter Descriptions:

    • --dhurl - DeployHub Url
    • --dhuser - DeployHub User
    • --dhpass - DeployHub Password
    • --appname - Application Name
    • --appversion - Application Version
    • --appautoinc - Application Auto Increment Version
    • --deployenv - Deployment Environment
    • --compname - Component Name
    • --compvariant - Component Variant
    • --compversion - Component Version
    • --compautoinc - Component Auto Increment Version
    • --kvconfig - Directory containing the json and properties file
    • --crdatasource - Change Request Data Source for the Component
    • --changerequest - Change Request for Component, use multiple time for each Change Request Id
    • --deploydata - The json file that contains the application, environment and log details
    • --from_domain - Move from domain
    • --task - Task to use for move
    • --envvars - Env Variables TOML file
    • --envvars_sh - Env Variables Output sh file
    • --docker - docker Kind of the component item
    • --file - file Kind of the component item
    • --compattr - Component Attributes, use multiple time for each attr
    • --envs - Environments to Associate App to, use multiple time for each env
    • --importfile - File to Import
    • --fromdom - From Domain
    • --todom - To Domain
    • --msname - New microservice being added to the cluster
    • --msbranch - New microservice branch being added to the cluster
    • --consumes - json file that lists the endpoints the component consumes. [ {"verb", "get", "path": "/weather"}]
    • --provides - json file that lists the endpoints the component provides. [ {"verb", "get", "path": "/checkout"}]

    Example Jenkinsfile Snippet: https://github.com/ortelius/compupdate/blob/main/Jenkinsfile

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deployhub-9.3.206.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deployhub-9.3.206-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file deployhub-9.3.206.tar.gz.

File metadata

  • Download URL: deployhub-9.3.206.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/65.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.14

File hashes

Hashes for deployhub-9.3.206.tar.gz
Algorithm Hash digest
SHA256 6dc5e0e51c973e231e655cfadd152c6f611985e9bdd300f3136b40baac72622e
MD5 6efd4f8dacec6356c1dbc3d934eebed4
BLAKE2b-256 083cd4c8068ab339dbec4e9708035823d8a403b17bbc349316e10f578c1858a6

See more details on using hashes here.

File details

Details for the file deployhub-9.3.206-py3-none-any.whl.

File metadata

  • Download URL: deployhub-9.3.206-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/65.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.14

File hashes

Hashes for deployhub-9.3.206-py3-none-any.whl
Algorithm Hash digest
SHA256 967f0b4f6531ebd8d7cdc4d7472b20dc1f9fdec3a0b1789acc5803e26d9e7111
MD5 2aa5c566dfceb04a616515642965fbd9
BLAKE2b-256 1efdbff229987804003b9ca853a0b9af3e79a28bd49b1563739b30a320ef9f8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page