CI/CD Configuration

Configure and automate your continuous integration and delivery workflows with Orbital7.

Getting Started with Orbital7 CI/CD

Pipeline Configuration

Define your CI/CD pipeline using YAML files in your repository's `.orbital7` directory.


# .orbital7/ci-cd.yml
pipeline:
  stages:
    - name: build
      command: npm install && npm run build
      environment: development
    - name: test
      command: npm test
      environment: testing
    - name: deploy
      command: orbital7 deploy --env=production
      environment: production

This basic pipeline will build, test, and deploy your application sequentially.

Environment Setup

Configure environment variables for secure credential management.

orbital7 env:set DEPLOYMENT_USER "your-username" --stage production
orbital7 env:set ACCESS_TOKEN "xyz123" --stage development
                

These variables will be injected during pipeline execution in the specified environments.

Pipeline Triggers

Define when your pipeline should execute automatically.


pipeline:
  triggers:
    - type: push
      branch: main
    - type: pull_request
      branches:
        - develop

This configuration will run pipelines on pushes to main branch and pull requests to develop.