Use with GitHub Actions

Cycleops can be automated in a few steps to be part of your existing CI/CD system with GitHub Actions. All that is needed to integrate with GitHub actions is:

  1. Create a new API key
  2. Create a GitHub Actions Secret (e.g. CYCLEOPS_API_KEY) with the value of the above key
  3. Install and use the Cycleops CLI in your workflow

Example

 deploy:
    runs-on: ubuntu-latest
    env:
      CYCLEOPS_API_KEY: ${{ secrets.CYCLEOPS_API_KEY }}
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v4
        with:
          python-version: "3.12"
      - name: Install the Cycleops CLI
        run: pip install cycleops
      - name: Update your Cycleops service with a new image
        run: cycleops services update-container <service_name> <container_name> --image <image_name>:<image_tag>
      - name: Deploy your Cycleops setup
        run: cycleops setups deploy <setup_name>

The Cycleops CLI is open source with its documentation available at GitHub: https://github.com/stackmasters/cycleops.