📚 Help CI/CD Guide

CI/CD Guide

Isurus includes a built-in CI/CD system that automatically runs pipelines when you push to a repository. Define your build, test, and deploy steps in a YAML file, and Isurus handles the rest.

CI is VCS-neutral: a push to any hosted repository — Git, Mercurial, or Fossil — triggers a pipeline, and tag/release events fire the same way across all three. The examples below use Mercurial (hg) commands, but the equivalent git push or fossil push triggers CI identically.

Overview

The CI/CD system works as follows:

  1. You commit a .isurus-ci.yml file to your repository root.
  2. When you push, Isurus detects the pipeline configuration and creates a new pipeline.
  3. A CI agent picks up the pipeline and executes each step.
  4. Results are streamed in real time to the web UI.

Setting Up CI

1. Create the Pipeline File

Add a file named .isurus-ci.yml to the root of your repository:

steps:
  - name: test
    docker:
      image: golang:1.26
    commands:
      - go test -v ./...

2. Commit and Push

hg add .isurus-ci.yml
hg commit -m "Add CI pipeline configuration"
hg push

3. View Results

Navigate to your repository and click the CI/CD tab in the repository navigation bar to see the pipeline status, step logs, and results.

Pipeline List

Enabling and Disabling CI

CI/CD is enabled by default for all repositories. To disable CI for a repository:

  1. Navigate to your repository.
  2. Go to Settings in the repository navigation bar.
  3. On the General page, uncheck Enable CI/CD pipelines.
  4. Click Save.

When CI is disabled, pushes will not trigger pipelines. Existing pipeline history is preserved. Re-enable at any time to resume CI on future pushes.

Skipping CI for a Commit

Include [ci skip] or [skip ci] anywhere in a commit's description to prevent that push from creating a pipeline (matching is case-insensitive). This is useful for automated version-bump or auto-tag commits that would otherwise re-trigger CI — important in Mercurial, where applying a tag is itself a commit that would normally fire a tag pipeline.

hg commit -m "Bump version to 2026010101 [ci skip]"

Pipeline YAML Reference

The pipeline configuration file is .isurus-ci.yml, placed at the repository root.

Top-Level Structure

when:
  event: [push]
  branch: [default, stable]

steps:
  - name: step-name
    ...

services:
  - name: service-name
    ...

release:
  tag: "$CI_TAG"
  ...

notify:
  webhooks:
    - url: "https://..."
      events: [failure]

when — Pipeline Filters

The top-level when block controls when the entire pipeline runs. If omitted, the pipeline runs on every push.

Field Type Description
event string or list Event types to match (any-of). See the event table below.
branch string or list Branch names to match (a Mercurial bookmark, a Git branch, or a Fossil branch)
tag string or list Tag names to match — only meaningful for tag events

A pipeline is classified with one or more events:

Event When it fires
push Any push that updates a branch/bookmark tip.
tag A tag was pushed. Mercurial: a push whose tip commit adds or modifies .hgtags (in hg a tag is a commit). Git: a push that creates a tag ref (refs/tags/*). Fossil: a push that adds a tag.
pull_request A push to a feature branch/bookmark that has an open PR, or when a PR is opened/reopened. A PR push carries both push and pull_request.
manual A pipeline started from the Run Pipeline button.

A tag event also fires on the webhooks bus when a tag is created (Git tag push, Fossil tag, or a Mercurial .hgtags commit) and can be subscribed to independently of push — see Webhook Payloads for the delivered body. [ci skip] / [skip ci] on the tagged commit still suppresses the tag pipeline the same as it does for a push (see Skipping CI for a Commit).

event matching is any-of: the filter passes if any of the pipeline's events is allowed.

All three fields accept a single string or a list of strings, and every value supports * wildcards (glob):

# Single value
when:
  branch: default

# Multiple values
when:
  branch: [default, stable]
  event: [push]

# Wildcards — match all release tags, on the default line only
when:
  event: [tag]
  branch: [default]
  tag: ["v*"]

Wildcard notes: * matches any run of characters (e.g. release/*, v*, *-rc). No other glob metacharacters are special.

If more than one of event, branch, and tag is specified, all of them must match for the pipeline to run. Some details:

  • branch is the pushed branch name: the Mercurial bookmark, the Git branch, or the Fossil branch. A push to the repository's default line is matched by its real branch name — default (hg), main/master (git), or trunk (fossil) — so filter on the name your repository actually uses. (An anonymous Mercurial push with no bookmark falls back to default.) For a tag event, branch is always the repository's default branch (default/main/trunk) — tags are not branch-scoped in Git or Fossil, so tag pipelines are labeled with the default line regardless of where the tagged commit lives. Filter tag pipelines with the tag: field, not branch:.
  • tag is empty for non-tag events, so a tag: filter never matches a push or pull_request event.

steps — Pipeline Steps

Each step defines a unit of work in the pipeline. Steps execute sequentially in the order listed.

Field Required Type Description
name Yes string Unique name for the step
docker Depends object Docker executor config. Contains image: (required for Docker executor)
incus Depends object Incus executor config. Contains image: (required for Incus executor)
image Depends string Shorthand for docker: { image: ... } — supported for backward compatibility
commands Yes list Shell commands to execute
environment No map Key-value environment variables
secrets No list Secret names to inject as environment variables
when No object Per-step branch/event filter (same format as top-level when)
timeout No string Maximum duration for this step (e.g., 5m, 30s, 1h). Step is killed if exceeded
retry No int Number of retries on failure (0-5). Step is re-run up to this many times before marking as failed

Backward compatibility: image: is supported as a shorthand for docker: { image: ... } for backward compatibility.

Step Example

steps:
  - name: test
    docker:
      image: golang:1.26
    commands:
      - go vet ./...
      - go test -v ./...
    environment:
      CGO_ENABLED: "0"

  - name: build
    docker:
      image: golang:1.26
    commands:
      - go build -o app ./cmd/server
    secrets:
      - deploy_token

Timeout and Retry

steps:
  - name: test
    docker:
      image: golang:1.26
    commands:
      - go test -v ./...
    timeout: 10m
    retry: 2

In this example, the test step will be killed if it runs longer than 10 minutes. If it fails, it will be retried up to 2 times before the pipeline is marked as failed.

Per-Step when Filter

Individual steps can have their own when filter. A step is skipped if its filter does not match the current event and branch:

steps:
  - name: test
    docker:
      image: golang:1.26
    commands:
      - go test ./...

  - name: deploy
    docker:
      image: alpine
    commands:
      - ./deploy.sh
    when:
      branch: default
      event: push

In this example, the deploy step only runs on pushes to the default branch.

services — Background Containers

Services are background containers that start before the steps and remain running for the duration of the pipeline. Use them for databases, caches, or other dependencies.

Field Required Type Description
name Yes string Service name (used as hostname for networking)
image Yes string Docker image to run
environment No map Key-value environment variables

Services Example

services:
  - name: db
    image: postgres:16
    environment:
      POSTGRES_USER: test
      POSTGRES_PASSWORD: test
      POSTGRES_DB: testdb

  - name: redis
    image: redis:7

steps:
  - name: test
    docker:
      image: golang:1.26
    commands:
      - go test -v ./...
    environment:
      DATABASE_URL: "postgres://test:test@db:5432/testdb?sslmode=disable"
      REDIS_URL: "redis://redis:6379"

Note: Services always use Docker and take image: directly. The docker: block syntax applies to pipeline steps only.

Full Example

A complete .isurus-ci.yml with filters, steps, services, secrets, release publishing, and notifications:

when:
  event: [push, tag]
  branch: [default, stable]

services:
  - name: db
    image: postgres:16
    environment:
      POSTGRES_PASSWORD: test

steps:
  - name: lint
    docker:
      image: golangci/golangci-lint:latest
    commands:
      - golangci-lint run ./...
    timeout: 5m

  - name: test
    docker:
      image: golang:1.26
    commands:
      - go test -v -race ./...
    environment:
      CGO_ENABLED: "1"
      DATABASE_URL: "postgres://postgres:test@db:5432/postgres?sslmode=disable"
    timeout: 15m
    retry: 1

  - name: build
    docker:
      image: golang:1.26
    commands:
      - go build -o app ./cmd/server

  - name: deploy
    docker:
      image: alpine
    commands:
      - apk add --no-cache openssh-client
      - ./scripts/deploy.sh
    secrets:
      - deploy_key
      - deploy_host
    when:
      branch: default

release:
  tag: "$CI_TAG"
  title: "Release $CI_TAG"
  body: "Automated release from CI pipeline #$CI_PIPELINE_NUMBER"
  assets:
    - dist/*
  secret: RELEASE_TOKEN
  when:
    event: [tag]

notify:
  webhooks:
    - url: "$SLACK_WEBHOOK"
      events: [failure]
      secret: SLACK_WEBHOOK

Pipeline Detail Page

The pipeline detail page uses a split-panel layout for inspecting builds.

Pipeline Detail Page

  • Left sidebar — Lists each step with its status icon and duration. Click a step to view its log.
  • Right panel — Displays the log output for the selected step, along with its status badge and duration.

Status Icons

Icon Meaning
Green checkmark Success
Red X Failure
Yellow spinner Running (pulsing indicator)
Gray circle Pending
Slash Cancelled
Dash Skipped

Real-Time Updates

The detail page automatically updates as the pipeline runs:

  • Step status changes — The page polls the API every 3 seconds and reloads when any step transitions (e.g., pending to running, running to success). Step icons, durations, and exit codes update automatically.
  • Log streaming — Running steps stream log output via Server-Sent Events (SSE). Lines appear as they are produced by the agent, with updates flushed every 500 milliseconds.
  • Breadcrumb navigation — The detail page shows a breadcrumb trail (e.g., leafscale / ci-test-python > CI/CD > #13) for easy navigation back to the pipeline list.

Log Viewer Features

  • Real-time streaming — Running steps stream logs via Server-Sent Events (SSE). Lines appear as they are produced.
  • Copy to clipboard — Copy the full log output with the Copy button.
  • Download — Download the log as a file (pipeline-N-stepname.log) with the Download button.
  • Show Config — View the commands configured for the step.

Pipeline Metadata

The metadata bar at the top of the detail page shows:

  • Pipeline status badge (Success, Failure, Running, etc.)
  • Execution duration, total time, and queue time
  • Commit hash and branch name
  • Event type, who triggered the pipeline, and the CI agent name
  • Creation timestamp
  • Re-run button to re-trigger from the same commit

Organization CI Dashboard

The organization CI dashboard provides a real-time overview of CI activity across all repositories in an organization. Navigate to any organization and click the CI/CD tab in the organization navigation bar to access it.

Organization CI Dashboard

Dashboard Features

  • Status cards — Each CI-enabled repository shows a card with its latest pipeline status, commit, branch, event type, and who triggered it.
  • Color-coded indicators — Cards have colored left borders and status dots: green for success, red for failure, amber/animated for running, gray for pending.
  • Running pipelines first — Active pipelines are always sorted to the top of the list.
  • Auto-refresh — The dashboard polls for updates every 5 seconds. Running pipelines automatically transition to their final status without manual page refresh.
  • Status filters — Filter by All, Running, Success, or Failure using the filter pills at the top of the page.
  • Click-through — Click any card to go directly to the pipeline detail page.

Pipeline List Page

The pipeline list is accessed by clicking the CI/CD tab in the repository navigation bar. It shows all CI runs for the repository under a "CI Runs" heading.

Pipeline List

Pipeline Configuration View

When a repository has a .isurus-ci.yml but no CI runs yet (or all runs have been deleted), the page displays a visual summary of the pipeline configuration instead of an empty list.

Pipeline Configuration View

This shows:

  • Numbered steps with their executor type (Docker, Incus, or Shell)
  • Container images for each step
  • Timeout and retry settings where configured
  • Service containers (database sidecars, etc.)
  • Release and notification configuration

This gives you a clear picture of what will run before triggering the first build.

Run Pipeline Manually

Click the Run Pipeline button at the top-right of the CI list page to manually trigger a pipeline from the repository's latest commit. This is useful when:

  • You want to run CI without pushing a new commit
  • You've deleted all previous runs and want to re-test
  • You need to test after changing CI secrets or agent configuration

Filtering

Filter Options
Status All, Running, Success, Failure, Pending, Cancelled, Error
Branch Any branch that has had pipelines (dropdown)
Event All events, or filter by specific event type (dropdown)
Triggered by All users, or filter by specific user (dropdown)

Sorting

The pipeline list table can be sorted by clicking column headers:

Sort field Options
Pipeline number Ascending or descending
Duration Ascending or descending
Creation date Ascending or descending

Pagination

Control Options
Page size 20, 50, or 100 per page (dropdown at bottom-right)
Navigation Previous / Next page links with current page indicator

Managing Pipelines

Re-run a Pipeline

On the pipeline detail page, click Re-run to create a new pipeline from the same commit. This is useful when a failure was caused by a transient issue (e.g., a network timeout).

Cancel a Running Pipeline

On the pipeline detail page, click Cancel to stop a running or pending pipeline. All pending and running steps are marked as cancelled.

Pipeline Parse Errors

If your .isurus-ci.yml has a syntax error, Isurus creates a pipeline with an error status instead of silently failing. Click through to the pipeline detail to see the exact parse error in the step log. Common causes:

  • Invalid YAML syntax (indentation, missing colons)
  • Missing required fields (step name, commands)
  • Empty executor image (docker: block without image:)

Tip: Use single quotes around commands that contain $ variables to prevent YAML from interpreting them:

commands:
  - 'echo "Commit: $CI_COMMIT"'

Delete a Pipeline

Organization owners and admins can delete pipelines:

  • Single delete — On the pipeline detail page, click Delete to remove one pipeline and its logs.
  • Bulk delete — On the pipeline list page, select multiple pipelines using the checkboxes in the left column and click Delete Selected.
  • Delete all failed — On the pipeline list page, click Delete Failed to remove all pipelines with a failure status.

CI Secrets

Secrets store sensitive values (API keys, deploy tokens, passwords) that are injected into pipeline steps as environment variables. All secrets are encrypted at rest using AES-256-GCM.

Repo-Level Secrets

Repo-level secrets are managed through the repository settings sidebar under the CI/CD section.

CI Secrets

  1. Navigate to your repository.
  2. Click Settings in the repository navigation bar.
  3. In the left sidebar, under the CI/CD heading, click Secrets.
  4. Enter a Name (used as the environment variable name) and Value.
  5. Click Add secret.

The page also shows any Inherited from Organization secrets below the repo-level list. Click Manage org secrets to navigate to the organization-level secrets page.

Tip: When creating an API token at Settings > Integration > Tokens, check Save token as CI secret to create both the token and the secret in one step.

Org-Level Secrets

Organization-level secrets are inherited by all repositories in the organization. They are managed through the organization settings sidebar under the CI/CD section.

Org Secrets

  1. Navigate to your organization.
  2. Click Settings in the organization navigation bar.
  3. In the left sidebar, under the CI/CD heading, click Secrets.
  4. Enter a Name and Value.
  5. Click Add secret.

If a repo-level secret has the same name as an org-level secret, the repo-level secret takes precedence (override).

Settings Sidebar Navigation

Both repo and org settings pages use a sidebar layout with sections:

Repository Settings sidebar:

  • General
  • Issues — Labels, Templates
  • CI/CD — Secrets
  • Integration — Webhooks, Tokens

Organization Settings sidebar:

  • General
  • Issues — Labels, Templates
  • CI/CD — Secrets
  • Integration — Tokens

Using Secrets in Pipelines

Reference secrets by name in the secrets field of a step. They are injected as environment variables:

steps:
  - name: deploy
    docker:
      image: alpine
    commands:
      - echo "Deploying to $DEPLOY_HOST"
      - ./deploy.sh
    secrets:
      - DEPLOY_HOST
      - DEPLOY_KEY

Security

  • Secrets are encrypted at rest with AES-256-GCM.
  • Secret values are masked in pipeline logs — any output matching a secret value is replaced with ***.
  • Secret values are never displayed in the web UI after creation. Only the secret name is shown.
  • Only organization owners can create or delete secrets.

CI Badges

Embed a build status badge in your README or documentation to show the current CI status.

Badge URL

https://your-isurus-instance/:org/:repo/ci/badge

Embedding in Markdown

![Build Status](https://your-isurus-instance/myorg/myrepo/ci/badge)

Badge Statuses

Status Color
Success Green
Failure / Error Red
Running / Pending Yellow
Cancelled Gray
Unknown (no pipelines) Gray

The badge always reflects the latest pipeline for the repository.

Publishing Releases from CI

CI pipelines can automatically create releases and upload artifacts using the built-in release: block. This replaces manual API scripting with a simple declarative configuration.

Release Block

Add a top-level release: section to your .isurus-ci.yml. It runs automatically after all steps succeed:

steps:
  - name: build
    docker:
      image: golang:1.26
    commands:
      - make build-release

release:
  tag: "$CI_TAG"
  title: "Release $CI_TAG"
  body: "Automated release from CI pipeline #$CI_PIPELINE_NUMBER"
  assets:
    - dist/*                                   # bare glob — uploaded without a description
    - path: dist/app-linux-amd64.tar.gz        # object form — carries a description
      description: "Linux x86_64 binary"
    - path: dist/checksums.txt
      description: "SHA-256 sums for every asset"
  secret: RELEASE_TOKEN
  when:
    event: [tag]

Release Block Reference

Field Required Type Description
tag Yes string Tag name for the release. Supports CI variable expansion (e.g., $CI_TAG)
title No string Release title. Defaults to the tag name if omitted
body No string Release description / notes. Supports CI variable expansion
assets No list Files to upload as release assets (relative to repo root). Each entry is either a bare glob/path string or a { path, description } object — see Asset descriptions below
secret Yes string Name of a CI secret containing an API token with releases:write scope
when No object Conditional filter (same format as step-level when). Typically event: [tag]

All string fields support CI environment variable expansion ($CI_TAG, $CI_PIPELINE_NUMBER, $CI_COMMIT, etc.).

Asset descriptions

Each entry in assets may be written two ways, and you can mix both in one list:

  • Bare string — a path or glob, uploaded with no description (the historical form; fully supported):
    assets:
      - dist/*.tar.gz
    
  • Object{ path, description }, where the optional description is a short per-file label shown on the repository's Releases pages (both the release list and detail views, next to each asset's size, download count, and checksums):
    assets:
      - path: dist/app-linux-amd64.tar.gz
        description: "Linux x86_64 binary"
    

Notes:

  • path accepts the same glob patterns as the bare-string form. When a glob with a description matches multiple files, that description is applied to every matched file.
  • Descriptions are a display-only convenience — they do not affect the file name, contents, or the auto-computed SHA-256 / SHA-512 / MD5 checksums (those are always stored and shown regardless).
  • Descriptions are capped at 500 characters; longer values are truncated.
  • No configuration or opt-in is required — omit description and assets behave exactly as before.

How It Works

  1. Tag your release in Mercurial: hg tag v1.0.0 && hg push
  2. The push triggers a CI pipeline (the when: event: [tag] filter matches tag events)
  3. Build steps compile your release artifacts
  4. After all steps succeed, the release: block runs automatically:
    • Creates a release via the Isurus API using the configured secret token
    • Uploads all files matching the assets glob patterns
  5. The release appears on the Releases tab with all uploaded files
  6. A "release" step appears in the pipeline detail with logs showing each action

If the release action fails (bad token, API error, missing files), the pipeline is marked as failed.

API Token

Create a repo-scoped API token with releases:write scope:

  1. Go to your repository Settings.
  2. In the sidebar under Integration, click Tokens.
  3. Create a token with the releases:write scope.
  4. Check Save token as CI secret and name it RELEASE_TOKEN — this creates both the token and the secret in one step.

Alternatively, create an org-scoped token at Organization Settings > Integration > Tokens to share across all repositories in the organization.

Notifications

The notify: block sends webhook notifications when a pipeline completes. Notifications are sent after all steps (and the release action, if configured) have finished.

Webhook Notifications

notify:
  webhooks:
    - url: "https://hooks.slack.com/services/T00/B00/xxxx"
      events: [failure]
    - url: "https://example.com/ci-webhook"
      events: [success, failure]
      secret: WEBHOOK_SECRET

Notify Webhook Reference

Field Required Type Description
url Yes string Webhook URL to POST to. Supports CI variable expansion
events Yes list Pipeline statuses to notify on: success, failure
secret No string CI secret name whose value is used for variable expansion in the URL

The webhook receives a JSON POST with the pipeline status, commit, branch, repo, and a link to the pipeline detail page.

Slack Example

To send Slack notifications on failure, create a Slack incoming webhook URL, save it as a CI secret named SLACK_WEBHOOK, then reference it:

notify:
  webhooks:
    - url: "$SLACK_WEBHOOK"
      events: [failure]
      secret: SLACK_WEBHOOK

Scheduled Releases

Releases can be scheduled for future publication, useful for coordinating launches or timed announcements.

How to Schedule a Release

  1. Navigate to your repository's Releases tab and create a new release (or edit an existing draft).
  2. Fill in the release details (tag, title, description, attachments) as usual.
  3. Set a date and time in the Schedule Publication field.
  4. Save the release as a draft. It will not be published immediately.

How It Works

  • The Isurus background job system checks for releases whose scheduled publication time has arrived and publishes them automatically.
  • Scheduled releases display a blue Scheduled badge on both the release list and the release detail page, along with the scheduled date and time.
  • You can cancel or reschedule a pending release at any time from the release edit page.
  • Once the scheduled time passes and the release is published, it behaves like any other published release.

Executors

CI agents support three execution modes: shell, docker, and incus. The agent auto-detects which executors are available on the host machine at startup and only accepts jobs that match an available executor.

Shell Executor

The shell executor runs commands directly on the agent's host machine. No executor block is needed — simply omit docker: and incus::

steps:
  - name: test
    commands:
      - go test ./...

The shell executor is useful when:

  • You need direct access to host tools and files.
  • Docker is not available on the agent.
  • You want faster execution without container overhead.

Note: The shell executor is disabled by default for security reasons. An administrator must enable it during agent registration.

Docker Executor

The Docker executor runs each step inside a container with the specified image. Use the docker: block with an image field:

steps:
  - name: test
    docker:
      image: golang:1.26
    commands:
      - go test ./...

The Docker executor provides:

  • Consistent, reproducible build environments.
  • Isolation between steps.
  • Access to any image from a container registry.

Docker must be installed and accessible on the agent host. The agent auto-detects Docker availability at startup.

Incus Executor

The Incus executor runs each step inside a system container or virtual machine managed by Incus. Use the incus: block with an image field referencing an Incus image:

steps:
  - name: build
    incus:
      image: images:ubuntu/24.04
    commands:
      - apt-get update
      - apt-get install -y golang
      - go build ./...

The Incus executor provides:

  • Full OS-level isolation (system containers or VMs).
  • Access to the Linux Containers image server and custom Incus remotes.
  • A good fit for agents running on bare metal or illumos/FreeBSD hosts where Docker is unavailable.

Incus must be installed and the agent user must have permission to manage instances. The agent auto-detects Incus availability at startup.

CI Agents

CI agents are worker processes that poll the Isurus forge for pipeline jobs, execute them, and report results.

How Agents Work

  1. An agent registers with the forge and receives an authentication token.
  2. The agent polls the forge for pending pipelines.
  3. When a job is available, the agent claims it, clones the repository, and executes each step.
  4. Step logs are streamed back to the forge in real time.
  5. The agent reports the final status (success, failure, error) when the pipeline completes.

Agent Registration

Agents are registered through the Admin > CI Agents panel in the web UI. Each agent gets a unique token for authentication.

Agent Self-Update

Agents automatically update themselves when the Isurus server is upgraded. On each heartbeat (every 5 seconds), the server compares the agent's version against the server version. If they differ, the server includes an upgrade URL in the heartbeat response. The agent then:

  1. Waits until it is idle (not executing a pipeline)
  2. Downloads the new binary from the server
  3. Atomically replaces its own executable
  4. Exits so the service manager can restart it with the new version

This means upgrading the Isurus server container automatically propagates agent updates to all connected agents — no manual intervention required.

Supported Platforms

The isurus-agent binary is cross-compiled for:

Platform Architecture
Linux amd64
Linux arm64
illumos amd64
FreeBSD amd64
macOS arm64 (Apple Silicon)

CI Environment Variables

The following environment variables are automatically available in every pipeline step:

Variable Description
CI Always true
CI_PIPELINE_ID Pipeline database ID
CI_PIPELINE_NUMBER Pipeline sequential number for the repo
CI_PIPELINE_NUM Alias for CI_PIPELINE_NUMBER
CI_COMMIT Full commit hash
CI_BRANCH Branch name
CI_EVENT Most specific event that triggered the pipeline (pull_request > tag > push)
CI_EVENTS Comma-joined full event set (e.g. push,pull_request)
CI_REPO Repository name
CI_REPO_NAME Repository name (alias)
CI_ORG Organization name
CI_REPO_URL Full URL to the repository
CI_SERVER Server base URL
CI_SERVER_URL Server base URL (alias)
CI_TAG Tag name (only set for tag events)

Private Registry Authentication

To pull images from a private container registry (or push from a CI step), declare credentials with the container-registry: block at the top of .isurus-ci.yml.

Step 1 — Create a CI secret

The secret's value must be a JSON object with username and password keys:

{"username":"robot$ci","password":"<token>"}

Create it at the repo or organization level via Settings → CI/CD → Secrets. Org-level secrets are inherited by all repos in the org, so a single Sharkos credential can serve every repo.

Step 2 — Reference it from .isurus-ci.yml

container-registry:
  - url: registry.sharkos.one
    secret: sharkos_registry_creds
  - url: docker.io
    secret: dockerhub_creds

steps:
  - name: build-and-push
    image: docker:cli
    commands:
      - docker build -t registry.sharkos.one/myapp:$CI_COMMIT .
      - docker push registry.sharkos.one/myapp:$CI_COMMIT

No docker login step is needed. The agent:

  • writes a Docker-compatible config.json into the pipeline's workspace,
  • exports DOCKER_CONFIG when pulling step and service images on the host, and
  • bind-mounts the config into every step container at /root/.docker (read-only).

Notes

  • url must be a bare hostname — no scheme, no path. registry.sharkos.one is correct; https://registry.sharkos.one/v2/ is not.
  • container-registry: is always an array, even for a single registry.
  • Credentials are masked in pipeline logs.
  • If the referenced secret cannot be resolved when an agent polls for the pipeline, the pipeline is marked as error in the UI. The agent logs the failure reason; check the agent host's logs (or the server's logs around that pipeline) to see whether the secret was missing or malformed.

Pull Request Events

Isurus CI distinguishes pushes that update an open pull request from ordinary pushes, so pipelines can gate behavior on PR vs. branch context.

How events are classified

Trigger Pipeline events
Push to a bookmark with no open PR [push]
Push to a bookmark with an open PR [push, pull_request]
Opening a PR (no new push) [pull_request] (on the bookmark's tip)
Push that modifies .hgtags [tag] (precedence preserved)

Filtering with when:

The when.event: filter matches if any event in the set matches any value in the filter. Examples:

steps:
  - name: lint
    image: golangci/golangci-lint:latest
    commands: [golangci-lint run]
    # no when: → runs on push, pull_request, and tag

  - name: integration-tests
    image: alpine
    commands: [./run-integration.sh]
    when:
      event: [pull_request]   # only PR-syncs and PR-opens

  - name: deploy
    image: alpine
    commands: [./deploy.sh]
    when:
      event: [push]           # excludes PR-syncs
      branch: [main]

When the same commit triggers two runs

If a contributor pushes and then opens a PR for that push seconds later, both events fire and two pipelines are created for the same tip commit — one classified [push, pull_request] (from the push), one classified [pull_request] (from the PR-open). This is the documented behavior; it's a minor cost for the simpler trigger model.

Known Limitations

Git LFS objects are not fetched for private repos

CI agents clone private repositories automatically using a short-lived, repo-scoped read-grant token — you don't need to configure any credentials for the checkout. This covers the Mercurial wire protocol (the repository history and file content tracked normally).

It does not yet cover Git LFS object downloads. LFS blobs are served by a separate, API-token-authenticated endpoint that the CI read-grant does not satisfy. As a result:

  • A pipeline on a public repo that uses LFS works (LFS reads on public repos are open).
  • A pipeline on a private repo that stores files in LFS will clone the repository, but the LFS-tracked files arrive as pointer files, not their real content — any step that reads such a file gets the pointer, not the data.

Because the checkout happens in the agent before your steps run, there is no reliable in-pipeline workaround today. If your CI needs LFS content, the practical options are to keep that repository public, avoid depending on LFS-tracked files in the build, or wait for native support.

Native read-grant support for LFS in CI is a tracked follow-up. See also Using LFS with Isurus.

×