<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Cradicle Explorer</title>
    <link href="/css/bootstrap/bootstrap.min.css" rel="stylesheet">
    <style>
      .form-control-dark::placeholder {
          color: #aaa;
          opacity: 1;
      }
    </style>
    <link rel="stylesheet" href="/assets/fontawesome/css/all.min.css">
    <link rel="icon" type="image/png" href="/favicon.png">


                <link href="/css/dashboard.css" rel="stylesheet">
                </head>
                <body>
                <header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
                  <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3 fs-6" href="/">Cradicle Explorer</a>
                  <button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                  </button>
                  <form method="get" action="/cgi-bin/main" style="width:100%;"><input class="form-control form-control-dark w-100 rounded-0 border-0" type="text" name="q" placeholder="Search repos" aria-label="Search"></form>
                  <div class="navbar-nav flex-row">
                    <div class="nav-item text-nowrap">
                      <a class="nav-link px-3 active" href="/cgi-bin/repo?id=zzmCBDptFLrfUEHSjcFsLJ2Aghav">plugin-sccache</a>
                    </div>
                  </div>
                </header>
                <div class="container-fluid">
                  <div class="row">
                    <nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-dark sidebar collapse">
                      <div class="position-sticky pt-3 sidebar-sticky">
                        <ul class="nav flex-column">
                          <li class="nav-item">
                            <a class="nav-link active" href="/cgi-bin/repo?id=zzmCBDptFLrfUEHSjcFsLJ2Aghav">
                              <i class="align-text-bottom fa-solid fa-info"></i>
                              Info
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=zzmCBDptFLrfUEHSjcFsLJ2Aghav&issue=list">
                              <i class="align-text-bottom fa-solid fa-layer-group"></i>
                              Issues
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=zzmCBDptFLrfUEHSjcFsLJ2Aghav&patch=list">
                              <i class="align-text-bottom fa-solid fa-vest-patches"></i>
                              Patches
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=zzmCBDptFLrfUEHSjcFsLJ2Aghav&wallet=list">
                              <i class="align-text-bottom fa-solid fa-wallet"></i>
                              Wallets
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=zzmCBDptFLrfUEHSjcFsLJ2Aghav&source=.">
                              <i class="align-text-bottom fa-solid fa-code"></i>
                              Source
                            </a>
                          </li>
                        <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted text-uppercase">
                          <span></span>
                        </h6>
                        <ul class="nav flex-column mb-2">
                        
                        </ul>
                      </div>
                    </nav>
                <main class="col-md-9 ms-sm-auto col-lg-10">
                  <div class="container px-1 py-3">
        

    <div class="list-group">
    <div class="list-group-item">
    <div style="font-size:1.3rem;">plugin-sccache</div>
    <div class="repo-item">A Woodpecker CI plugin that integrates sccache with your CI/CD pipeline</div>
    <div>rad:zzmCBDptFLrfUEHSjcFsLJ2Aghav</div>
    </div>
    <div class="list-group-item">
    <div>Visibility</div>
    <div class="repo-item">public</div>
    </div>
    <div class="list-group-item">
    <div>Delegates</div><div class="repo-item">did:key:z6MkkfM3tPXNPrPevKr3uSiQtHPuwnNhu2yUVjgd2jXVsVz5</div>
    </div>
    <div class="list-group-item">
    <div>Default branch</div>
    <div><span class="repo-item">main &#8594 15f32b13b77872b51ce7f0366ce8313638977813</span> (Mon Jun  2 13:05:10 2025)</div>
    </div>
    <div class="list-group-item">
    <div>Threshold</div>
    <div class="repo-item">1</div>
    </div>
    </div>
    
        <div class="list-group mt-3">
        <div class="list-group-item">
        <div class="mb-2" style="font-weight:bold;"><i class="fa-solid fa-book"></i> README.md</div>
        <pre style="margin:0; font-size:0.85rem; overflow-x:auto; color:#fafafa;"># Woodpecker sccache Plugin

A [Woodpecker CI](https://woodpecker-ci.org/) plugin that integrates [sccache](https://github.com/mozilla/sccache) (Mozilla&#x27;s compiler cache) with your CI/CD pipeline to speed up compilation times.

## Description

This plugin configures sccache with S3 backend integration, allowing your CI/CD pipeline to cache compilation artifacts between builds.

## Features

- Easy integration with Woodpecker CI
- S3-compatible storage support (AWS S3, MinIO, etc.)
- Compatible with Rust, C/C++, and other sccache-supported languages
- Environment sharing between pipeline steps

## Usage

Add the plugin to your Woodpecker pipeline:

```yaml
steps:
  cache:
    image: sebastinez/plugin-sccache:latest
    volumes:
      - sccache:/sccache_data
    settings:
      s3-endpoint: https://your-s3-endpoint.com
      s3-bucket: your-cache-bucket
      s3-key-prefix: your-project-name
      s3-access_key:
        from_secret: s3_access_key
      s3-secret_key:
        from_secret: s3_secret_key

  build:
    image: your-build-image
    volumes:
      - sccache:/sccache_data
    commands:
      - export PATH=&quot;/sccache_data:$PATH&quot;
      - source .sccache
      - cargo build --release
```

## Settings

| Parameter           | Description                                          | Default     |
|:--------------------|:-------------------------------------------------------------------|
| `s3-endpoint`       | S3-compatible endpoint URL                           |             |
| `s3-bucket`         | S3 bucket name                                       |             |
| `s3-access-key`     | S3 access key                                        |             |
| `s3-secret-key`     | S3 secret key                                        |             |
| `region`            | AWS region                                           | `auto`      |
| `key-prefix`        | Key prefix in S3 bucket                              | `sccache`   |
| `s3-no-credentials` | S3 no credentials                                    | `false`     |
| `log-level`         | Sccache log level (error, warn, info, debug, trace)  | `info`      |

## How It Works

1. The cache step:
   - Configures the sccache server with the desired storage solution
   - Creates environment variables in `.sccache` for subsequent steps

2. Your build steps:
   - Source the environment file to use the same sccache configuration
   - Run compilation commands that automatically use sccache

Sccache automatically handles caching compiler outputs to and from S3 during your build process.

## Building the Plugin

To build the plugin locally:

```bash
docker build -t yourusername/woodpecker-sccache-plugin:latest .
```
</pre>
        </div>
        </div>

</div>
</main>
</div>
</div>


</body>
</html>

