Git Sources
Git sources let you connect a git repository to Paquetier so that packages are built automatically when new tags are pushed or commits land on a branch.
How It Works
Section titled “How It Works”- Paquetier polls the git repository on a configurable schedule.
- When a new tag or commit is detected (based on the trigger type), it clones the repository.
- It runs
R CMD buildto produce a source tarball. - The tarball is ingested into all linked target repositories.
- Optionally, binary packages are built via the
bincraftR package.
Build progress is streamed in real-time to the web UI via server-sent events (SSE). Build logs are persisted and can be viewed or downloaded later.
Adding a Git Source
Section titled “Adding a Git Source”- Navigate to Git Sources in the sidebar.
- Click Add Git Source.
- Configure the source:
| Setting | Description |
|---|---|
| Git URL | The repository URL (HTTPS or SSH) |
| Credential | Select a git credential for private repos, or “None” for public repos |
| Trigger | When to build: new tags, branch commits, or manual only |
| Tag Pattern | Glob pattern for tag triggers (e.g. v*, *). Only applies to tag triggers. |
| Branch | Branch name for branch triggers (e.g. main) |
| Poll Interval | How often to check for changes (minimum 5 minutes, default 15 minutes) |
| Subdirectory | Path to the R package source within the repository (optional) |
| Target Repositories | Which Paquetier repos should receive the built packages |
| Build Binaries | Whether to also build platform-specific binary packages |
- Click Add Source.
Trigger Types
Section titled “Trigger Types”Tag Triggers
Section titled “Tag Triggers”Builds are triggered when new git tags matching the configured pattern are created. This is the recommended approach for release workflows.
Branch Triggers
Section titled “Branch Triggers”Builds are triggered when new commits appear on the configured branch. Useful for nightly or development builds.
Manual Triggers
Section titled “Manual Triggers”No automatic polling. Builds can only be triggered manually via the Build Now button in the UI or the API.
Monitoring Builds
Section titled “Monitoring Builds”Navigate to Builds to see the build history. Each build shows:
- Status — Pending, running, completed, or failed.
- Source — Which git source triggered the build.
- Ref — The git tag or commit that was built.
- Duration — How long the build took.
- Log — Full build output, viewable in the UI or downloadable.
Failed builds can be retried with the Retry button.