mirror of
https://github.com/docker/go-tuf-mirror
synced 2026-04-05 19:43:24 +00:00
No description
- Go 91.8%
- Makefile 4.9%
- Dockerfile 3.3%
Bumps [github.com/docker/attest](https://github.com/docker/attest) from 0.6.7 to 0.6.8. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/docker/attest/releases">github.com/docker/attest's releases</a>.</em></p> <blockquote> <h2>v0.6.8</h2> <h2>Changes</h2> <ul> <li>feat(deps): bump google.golang.org/api from 0.201.0 to 0.202.0 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/docker/attest/issues/210">#210</a>)</li> <li>Update go git <a href="https://github.com/jonnystoten"><code>@jonnystoten</code></a> (<a href="https://redirect.github.com/docker/attest/issues/209">#209</a>)</li> </ul> <h2>🚀 Features</h2> <ul> <li>feat: add internal reproducible git checksum builtin <a href="https://github.com/jonnystoten"><code>@jonnystoten</code></a> (<a href="https://redirect.github.com/docker/attest/issues/203">#203</a>)</li> <li>feat: add code of conduct <a href="https://github.com/mrjoelkamp"><code>@mrjoelkamp</code></a> (<a href="https://redirect.github.com/docker/attest/issues/206">#206</a>)</li> <li>feat: add pr and issue templates <a href="https://github.com/mrjoelkamp"><code>@mrjoelkamp</code></a> (<a href="https://redirect.github.com/docker/attest/issues/205">#205</a>)</li> </ul> <h2>🧰 Maintenance</h2> <ul> <li>chore: skip DCO requirement for org members <a href="https://github.com/jonnystoten"><code>@jonnystoten</code></a> (<a href="https://redirect.github.com/docker/attest/issues/208">#208</a>)</li> <li>feat: add code of conduct <a href="https://github.com/mrjoelkamp"><code>@mrjoelkamp</code></a> (<a href="https://redirect.github.com/docker/attest/issues/206">#206</a>)</li> <li>feat: add pr and issue templates <a href="https://github.com/mrjoelkamp"><code>@mrjoelkamp</code></a> (<a href="https://redirect.github.com/docker/attest/issues/205">#205</a>)</li> <li>chore: apply license headers <a href="https://github.com/mrjoelkamp"><code>@mrjoelkamp</code></a> (<a href="https://redirect.github.com/docker/attest/issues/204">#204</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|---|---|---|
| .github | ||
| actions | ||
| cmd | ||
| internal | ||
| template | ||
| .gitignore | ||
| CODE-OF-CONDUCT.md | ||
| CONTRIBUTING.md | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| Makefile | ||
| NOTICE | ||
| README.md | ||
go-tuf-mirror
Mirror TUF metadata to/between OCI registries
Usage
GitHub Actions
Example GHA workflow:
name: Run go-tuf-mirror
on:
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
env:
DOCKER_CONFIG: ${{ github.workspace }}/.docker
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: dockerpublicbot
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
- name: Mirror metadata
uses: docker/go-tuf-mirror/actions/metadata@v0.1.0
with:
source: https://docker.github.io/tuf-staging/metadata
destination: docker://docker/tuf-metadata:latest
- name: Mirror targets
uses: docker/go-tuf-mirror/actions/targets@v0.1.0
with:
metadata: https://docker.github.io/tuf-staging/metadata
source: https://docker.github.io/tuf-staging/targets
destination: docker://docker/tuf-targets
Mirror only metadata from web
-
Build
go-tuf-mirrormake build -
Run
metadatacommand./go-tuf-mirror metadata -s <metadata location> -d <metadata output location>example:
# output metadata to docker registry ./go-tuf-mirror metadata -s https://docker.github.io/tuf-staging/metadata -d docker://docker/tuf-metadata:latest Mirroring TUF metadata https://docker.github.io/tuf-staging/metadata to docker://docker/tuf-metadata:latest Metadata manifest pushed to docker/tuf-metadata:latest
Mirror delegated targets metadata
-
Run
metadatacommand with the-fflagexample:
./go-tuf-mirror metadata -f -s "https://docker.github.io/tuf-staging/metadata" -d "docker://docker/tuf-metadata:latest" Mirroring TUF metadata https://docker.github.io/tuf-staging/metadata to docker://docker/tuf-metadata:latest Metadata manifest pushed to docker/tuf-metadata:latest Delegated metadata manifest pushed to docker/tuf-metadata:opkl Delegated metadata manifest pushed to docker/tuf-metadata:doi
Mirror only targets from web
-
Build
go-tuf-mirrormake build -
Run
metadatacommand./go-tuf-mirror targets -m <source metadata location> -s <source targets location> -d <destination targets location>example:
# output targets to docker registry ./go-tuf-mirror targets -m https://docker.github.io/tuf-staging/metadata -s https://docker.github.io/tuf-staging/targets -d docker://docker/tuf-targets Mirroring TUF targets https://docker.github.io/tuf-staging/targets to docker://docker/tuf-targets Target manifest pushed to docker/tuf-targets:ecc736303caf8cf22ef00df2db3c411a563030c2e1e7ae24f4e38113e7ad610d.doi-signing-stage.pem Target manifest pushed to docker/tuf-targets:3965bb0a873cff50e16b277444d659553ab79c9632a1fb03a6d9360af536c142.image-signer-verifier.pem Target manifest pushed to docker/tuf-targets:e4dc114275694612ee236b231990d606b7879d05f64809611545c8234efb6cd4.doi-signing-key.pem Target manifest pushed to docker/tuf-targets:5ddbaf12a091d0b877b7574af7cc19bf85023d649a520ccfebc0f2b5f8c2c4de.doi-signing-prod.pem
Mirror metadata and targets from web
-
Build
go-tuf-mirrormake build -
Run
allcommand./go-tuf-mirror all --source-metadata <metadata location> --source-targets <targets location> --dest-metadata <metadata output location> --dest-targets <targets output location>example:
# outputs metadata and targets to local OCI layout ./go-tuf-mirror all --source-metadata "https://docker.github.io/tuf-staging/metadata" --source-targets "https://docker.github.io/tuf-staging/targets" --dest-targets "oci://./tmp/targets" --dest-metadata "oci://./tmp/metadata" Mirroring TUF metadata https://docker.github.io/tuf-staging/metadata to oci://./tmp/metadata Metadata manifest layout saved to ./tmp/metadata Mirroring TUF targets https://docker.github.io/tuf-staging/targets to oci://./tmp/targets Target manifest layout saved to tmp/targets/ecc736303caf8cf22ef00df2db3c411a563030c2e1e7ae24f4e38113e7ad610d.doi-signing-stage.pem Target manifest layout saved to tmp/targets/3965bb0a873cff50e16b277444d659553ab79c9632a1fb03a6d9360af536c142.image-signer-verifier.pem Target manifest layout saved to tmp/targets/e4dc114275694612ee236b231990d606b7879d05f64809611545c8234efb6cd4.doi-signing-key.pem