Skip to content

Latest commit

 

History

History

flakestry

Module: Flakestry

dagger-min-version deno compatibility

Publish a Nix Flake from a Github Repository to flakestry.

🚀 Usage

dagger call -m github.com/tsirysndr/daggerverse/flakestry publish \
  --src . \
  --version v0.1.0 \
  --gh-token GH_TOKEN \
  --ref $REF \
  --actions-id-token-request-token ACTIONS_ID_TOKEN_REQUEST_TOKEN \
  --actions-id-token-request-url ACTIONS_ID_TOKEN_REQUEST_URL

Arguments

Name Description Required
src Directory containing the flake to be published to flakestry. true
version Version of the flake to be published to flakestry. true
gh-token GitHub Access Token true
ref Git sha reference of the flake to be published to flakestry. true
actions-id-token-request-token GitHub Actions ID token request token. true
actions-id-token-request-url GitHub Actions ID token request URL. true
url URL of the flakestry API false
ignore-conflicts Ignore conflicts when publishing the flake to flakestry. false

🧑‍💻 Programmatic usage

import { publish } from 'jsr:@fx/flakestry';

await publish(".",
  "v0.1.0",
  Deno.env.get("GH_TOKEN")!,
  Deno.env.get("REF")!,
  Deno.env.get("ACTIONS_ID_TOKEN_REQUEST_TOKEN")!,
  Deno.env.get("ACTIONS_ID_TOKEN_REQUEST_URL")!
);