Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 1.58 KB

README.md

File metadata and controls

75 lines (46 loc) · 1.58 KB

daggerverse Git actions Module

Dagger module for daggerverse providing Git actions.

The Dagger module is located in the git-actions directory.

usage

Basic usage guide.

The git-actions directory contains a daggerverse Dagger module.

Check the official Dagger Module documentation: https://docs.dagger.io/zenith/

The Dagger CLI is needed.

functions

List all functions of the module. This command is provided by the Dagger CLI.

dagger functions -m ./git-actions/

The git-actions module is referenced locally.

development

Basic development guide.

setup Dagger module

Setup the Dagger module.

Create the directory for the module and initialize it.

mkdir git-actions/
cd git-actions/

# initialize Dagger module
dagger mod init --sdk go --name git-actions

setup development module

Setup the outer module to be able to develop the Dagger git-actions module.

dagger mod init --sdk go --name modest
dagger mod use ./git-actions

Generate or re-generate the Go definitions file (dagger.gen.go) for use in code completion.

dagger mod install

The functions of the module are available by the dag variable. Type dag. in your Go file for code completion.

Update the module:

dagger mod update

To Do

  • document functions
  • Add cache mounts
  • Add environment variables
  • Add more examples
  • Add tests