Skip to content

depot/snapshot-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Depot CI Snapshot Action

Snapshot Depot CI filesystem changes and push filesystem snapshots to the Depot registry.

Usage

jobs:
  snapshot:
    runs-on: depot-ubuntu-latest
    steps:
      - uses: depot/snapshot-action@v1
        with:
          image: |
            orgid.registry.depot.dev/repo:latest
            orgid.registry.depot.dev/repo:1.1
          max-age: 2d

When image contains multiple refs, they must point to the same registry repository. This is multi-tag publishing, not multi-registry replication.

Preventing certain environment variables to be captured in the snapshot

Some well-known secrets, API tokens, and secret prefixes are excluded from the snapshot by default. For the detailed list, see the documentation.

jobs:
  snapshot:
    runs-on: depot-ubuntu-latest
    steps:
      - uses: depot/snapshot-action@v1
        with:
          image: orgid.registry.depot.dev/repo:tag
          env-mask: |
            MY_ENV
            MY_SUPER_SECRET_TOKEN
            API_TOKEN

Inputs

Input Required Default Description
token No '' Depot API token used as registry password.
image Yes Full image reference, or newline-delimited refs in the same repository (e.g. orgid.registry.depot.dev/repo:tag)
env-mask No '' Prevent certain environment variables from being persistend in the snapshot
max-age No '' Optional snapshot tag TTL. Supports s, m, h, and d units, for example 2d or 1h30m.
upload-mode No oci-x-depot Snapshot registry blob upload mode: default, oci-out-of-order, or oci-x-depot.
base No /dev/vdb Base block device
upper No /rw/.snap/upper Upper directory for overlay
snapshot No /rw/overlay:/rw/.snap Overlay:snap mapping
version No latest Snapshot binary version

License

MIT License - see LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors