Docs/Candor Deploy

Actions: CI workflows on your servers

Run GitHub Actions-style workflows for tests and builds on runners that are your own servers, control who may run them, and make deploys wait for them to pass.

Actions runs CI workflows, such as tests and builds, written in GitHub Actions YAML. The jobs run on runners, which are servers in your workspace: one you connected, or a Candor Cloud server. Runs use that server’s memory, CPU and disk, alongside anything else on it.

Open Actions in the sidebar. It has three parts: Workflows, Runners and the runs of each workflow.

Actions works with repositories on github.com.

1. Add a runner

  1. Open Actions, then Runners, and press Add runner.
  2. Choose the server the jobs should run on. Candor Deploy checks its operating system, CPU architecture, and whether Git, Node.js and Docker are present.
  3. Choose a Default environment:
    • The Ubuntu preset: a ready-made Linux container image with Node.js and Git. Needs Docker on the server, which every server set up by Candor Deploy has.
    • Linux: runs directly on the server with the tools installed on it.
    • Custom image: a Docker image of your own. It needs Node.js and Git.
  4. Under Advanced settings, set vCPU per container, Memory per container and Concurrent jobs, so builds leave room for your apps. CPU and memory limits apply to container jobs; jobs on the Linux environment use the server’s resources directly.
  5. Save.

Each job can still pick its own container image with jobs.<job>.container. The image must contain the shell and tools its steps use.

Two options need care:

  • Allow Docker access lets jobs build Docker images. It gives the workflow access to that server’s Docker engine, and so to your other containers on it. Turn it on only for repositories you trust.
  • Enable CPU emulation installs QEMU on the server so a job can run for another CPU architecture, such as arm64 on an x64 server. Emulated jobs are slower.

A runner on a server runs whatever the workflow tells it to. Only connect repositories you trust. If you want CI kept away from your apps, use a separate server for it.

2. Connect a workflow

Workflows live in your repository. Where the file is decides how it runs:

  • .github/workflows/: GitHub runs the workflow as usual, with its checks, secrets, environments, artifacts and caches. Jobs whose runs-on labels match your runner are sent to it. This needs GitHub access that can manage runners: a GitHub App with Actions and Administration write permission, or a suitable token.
  • .openship/workflows/: Candor Deploy runs the workflow itself and GitHub ignores the folder. Use this to run CI only here, even with GitHub Actions turned off. (The folder name comes from Openship, the open-source platform Candor Deploy is built on.)

To connect one:

  1. Open Actions and press Add workflow, or open a project and its Actions tab.
  2. Choose the repository and branch. The workflows found are listed, with a diagram of how their jobs depend on each other. Select one or more.
  3. Edit if you need to: in the diagram, as a list, or as YAML. All three edit the same draft.
  4. In Run settings, choose the runners and the triggers.
  5. In Access, choose who may start runs (see below).
  6. Review the GitHub connection under Checks, choose notifications if you want them, and save. If you edited the file, you review the change and commit it back to GitHub.

To send a job from a .github/workflows/ file to your runner, use these labels:

runs-on: [self-hosted, openship, linux, x64]

A job with runs-on: ubuntu-latest stays on GitHub’s own runners.

A minimal workflow that runs only in Candor Deploy:

# .openship/workflows/ci.yml
name: CI
on:
  push:
    branches: [main]
  workflow_dispatch:
permissions:
  contents: read
jobs:
  test:
    runs-on: [self-hosted, openship, linux]
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npm test

For .openship/workflows/, a push starts a run when your workspace’s GitHub App receives push events. Results are reported on the commit as checks if the App has Checks: write permission.

Who can run workflows

Set this in the Access step:

  • Who can run: Only my account (the default), selected GitHub users, repository collaborators with write access, or authorized workspace members.
  • Approval for each run (the default): an admin reviews the commit and the runners before any runner starts. Open the run’s Approvals tab and choose Approve this attempt. A rerun needs a new approval.
  • Automatically allow eligible users: skips the review for the people you allowed.

Pull requests from forks are not run on your runners.

Triggers

When to run edits the workflow’s on rules:

  • Git push: commits pushed to matching branches or paths.
  • Pull requests from the same repository.
  • Cron schedules, in UTC.
  • Manual & Jobs: the Run button, with inputs you define. A scheduled job can also start the workflow on a schedule, once, or after an event.
  • Webhook, for .openship/workflows/ files: turn on repository_dispatch. The workflow page shows its endpoint. Call it with an API token from Settings, then API tokens:
POST https://app.candordeploy.com/api/actions/workflows/WORKFLOW_ID/dispatch
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json

{ "eventType": "release", "clientPayload": { "version": "1.2.3" } }

Schedules in .openship/workflows/ files run at most every five minutes. Schedules in .github/workflows/ files are run by GitHub.

Make deploys wait for CI

Open the project, then its Actions tab, and choose how deploys relate to workflows:

  • Manual deployments: workflows run on their own; you deploy when you choose.
  • Deploy on push: each push deploys through the normal pipeline, whatever CI says.
  • Deploy after Actions pass: a push deploys only once every required workflow has passed for that exact commit.

A required workflow must be enabled, belong to the project’s repository, and run on every push to the deploy branch. Pending and failed checks show in the project’s Actions tab. You can still deploy by hand at any time.

Runs and logs

Each run records the commit and the workflow definition it used. The run page lists jobs and steps on the left and logs on the right; Topology shows the same run as a diagram. Run again starts a new attempt of the same revision. Cancel run stops it and cleans up.

For .github/workflows/ files, live logs open on GitHub, and finished logs and artifacts are also available here.

Artifacts and cache

.github/workflows/ files use GitHub’s artifact and cache storage.

.openship/workflows/ files support actions/upload-artifact@v4, actions/download-artifact@v4 and actions/cache@v4. Choose an S3-compatible storage destination for them in Run settings. Workflow code never sees that storage’s credentials.

Limits

For workflows Candor Deploy runs itself (.openship/workflows/):

  • Up to 256 jobs per run, after matrix expansion.
  • A job times out after 60 minutes by default, and can ask for up to 360.
  • Logs are kept up to 8 MiB per job. Finished runs are kept for 30 days.
  • One stored artifact or cache object can be up to 1 GiB, with 20 GiB in total per workspace. Artifacts are kept 7 days by default, up to 30.
  • Protected environments and attestations need .github/workflows/ files.

Runners are Linux servers. Windows runners and GitHub Enterprise are not supported.

Something here wrong, unclear or missing? Tell us. Docs get fixed like bugs.

Not a customer yet? Start a free trial, or see plans and limits.