Skip to main content

Publish a Nix Flake from a Github Repository to flakestry

Works with
This package works with Bun
This package works with Node.js
This package works with Deno
JSR Score
64%
Published
2 months ago

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")!
);
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @fx/flakestry

Import symbol

import * as mod from "@fx/flakestry";

Add Package

npx jsr add @fx/flakestry

Import symbol

import * as mod from "@fx/flakestry";

Add Package

yarn dlx jsr add @fx/flakestry

Import symbol

import * as mod from "@fx/flakestry";

Add Package

pnpm dlx jsr add @fx/flakestry

Import symbol

import * as mod from "@fx/flakestry";

Add Package

bunx jsr add @fx/flakestry

Import symbol

import * as mod from "@fx/flakestry";