Github

Github looks at the root of each repo under .github/workflows/... to identify "workflows".

Their hosted agents support starting the ci process alongside a docker daemon so running opctl is a matter of defining a "workflow" as follows:

  • downloading & untar'ing opctl
  • adding "steps" with your calls to opctl

Examples

# .github/workflows/your_workflow.yml
name: your_workflow_name
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Opctl
run: curl -L https://github.com/opctl/opctl/releases/download/0.1.46/opctl0.1.46.linux.tgz | sudo tar -xzv -C /usr/local/bin
- name: Build
run: opctl run build