mage

package
v0.0.0-...-82c832e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

This directory contains the legacy mage scripts for running dagger's CI.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context) error

Generate runs all generators

func Lint

func Lint(ctx context.Context) error

Lint runs all linters

func Test

func Test(ctx context.Context) error

Test runs all tests

Types

type Cli

type Cli mg.Namespace

func (Cli) Publish

func (cl Cli) Publish(ctx context.Context, version string) error

Publish publishes dagger CLI using GoReleaser

func (Cli) TestPublish

func (cl Cli) TestPublish(ctx context.Context) error

TestPublish verifies that the CLI builds without actually publishing anything TODO: ideally this would also use go releaser, but we want to run this step in PRs and locally and we use goreleaser pro features that require a key which is private. For now, this just builds the CLI for the same targets so there's at least some coverage

type Dagger

type Dagger mg.Namespace

func (Dagger) Publish

func (Dagger) Publish(ctx context.Context, version string) error

Publish publishes Engine and CLI together - CLI depends on Engine

type Docs

type Docs mg.Namespace

func (Docs) Generate

func (d Docs) Generate(ctx context.Context) error

Generate re-generates the API schema and CLI reference

func (Docs) GenerateCli

func (d Docs) GenerateCli(ctx context.Context) error

GenerateCli re-generates the CLI reference documentation

func (Docs) GenerateSdl

func (d Docs) GenerateSdl(ctx context.Context) error

GenerateSdl re-generates the API schema

func (Docs) Lint

func (d Docs) Lint(ctx context.Context) error

Lint lints documentation files

type Engine

type Engine mg.Namespace

func (Engine) Connect

func (t Engine) Connect(ctx context.Context) error

Connect tests a connection to a Dagger Engine

func (Engine) Dev

func (t Engine) Dev(ctx context.Context) error

Dev builds and starts an Engine & CLI from local source code

func (Engine) Lint

func (t Engine) Lint(ctx context.Context) error

Lint lints the engine

func (Engine) Publish

func (t Engine) Publish(ctx context.Context, version string) error

Publish builds and pushes Engine OCI image to a container registry

func (Engine) Scan

func (t Engine) Scan(ctx context.Context) error

Lint lints the engine

func (Engine) Test

func (t Engine) Test(ctx context.Context) error

Test runs Engine tests

func (Engine) TestImportant

func (t Engine) TestImportant(ctx context.Context) error

TestImportant runs Engine Container+Module tests, which give good basic coverage of functionality w/out having to run everything

func (Engine) TestPublish

func (t Engine) TestPublish(ctx context.Context) error

Verify that all arches for the Engine can be built. Just do a local export to avoid setting up a registry

func (Engine) TestRace

func (t Engine) TestRace(ctx context.Context) error

TestRace runs Engine tests with go race detector enabled

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL