Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

setup-quantum-cli

CIGitHub ActionLicense: MPL 2.0

A GitHub Action to install and configure quantum-cli for use in your CI/CD workflows. This action downloads the CLI, adds it to your PATH, and sets up authentication automatically.

Prerequisites

Supported platforms

OSArchitecture
Linuxamd64, arm64
macOSamd64, arm64
Windowsamd64, arm64

Inputs

You should provide an api-key, but it's optional.

InputDescription
api-keyYour Quantum API keyoptional, adds the key to the environment
versionThe versionoptional, defaults to latest
enable-cacheCache quantum-cli endpoint data between runsoptional, defaults to true

Usage

For detailed documentation on the quantum-cli, please refer to our docs.

Quickstart

steps:
- uses: hostwithquantum/setup-quantum-cli@v2with:
api-key: ${{ secrets.QUANTUM_API_KEY }}
- run: quantum-cli auth status

Full workflow example

name: Deployon:
push:
branches: [main]jobs:
deploy:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v6
- uses: hostwithquantum/setup-quantum-cli@v2with:
api-key: ${{ secrets.QUANTUM_API_KEY }}
- run: quantum-cli auth status
- run: quantum-cli stack deployenv:
QUANTUM_ENDPOINT: my-clusterQUANTUM_STACK: my-app

Windows example

jobs:
deploy:
runs-on: windows-lateststeps:
- uses: actions/checkout@v6
- uses: hostwithquantum/setup-quantum-cli@v2with:
api-key: ${{ secrets.QUANTUM_API_KEY }}
- run: quantum-cli.exe auth status

Environment variables

The action sets the following environment variables for subsequent steps:

When using API key:

  • QUANTUM_API_KEY — your API key

Dependencies

  • bash
  • curl
  • sha256sum
  • actions/cache

License

MPL-2.0

About

A Github Action to deploy to Planetary Quantum's Docker platform.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors