https://github.com/mesosphere/d2iq-daggers
Collection of tasks and utilities to manage ci-cd pipelines
https://github.com/mesosphere/d2iq-daggers
ci-cd dagger dagger-io magefile
Last synced: about 2 months ago
JSON representation
Collection of tasks and utilities to manage ci-cd pipelines
- Host: GitHub
- URL: https://github.com/mesosphere/d2iq-daggers
- Owner: mesosphere
- License: apache-2.0
- Created: 2022-11-01T11:22:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-14T11:21:41.000Z (12 months ago)
- Last Synced: 2025-09-08T02:52:40.782Z (8 months ago)
- Topics: ci-cd, dagger, dagger-io, magefile
- Language: Go
- Homepage:
- Size: 265 KB
- Stars: 6
- Watchers: 10
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# D2iQ Daggers
`d2iq-daggers` is a component library for [dagger](https://github.com/dagger/dagger) that provides a collection of tasks and
utilities to make it easier to use.
**WARNING:** The library is still in development and may introduce breaking changes in the future without notice.
## Installation
To install daggers, use the go command:
```bash
$ go get github.com/mesosphere/d2iq-daggers
```
## Usage
To use daggers, import the package into your project:
```go
import "github.com/mesosphere/d2iq-daggers/daggers"
```
Then, use the `daggers` package to create a new Runtime:
```go
runtime, err := daggers.NewRuntime(ctx, daggers.WithVerbose(true))
if err != nil {
panic(err)
}
```
With the runtime, you can then use the catalog to create tasks:
```go
import "github.com/mesosphere/d2iq-daggers/catalog/golang"
```
```go
_, dir, err := golang.RunCommand(
ctx,
runtime,
golang.WithArgs([]string{"test", "-v", "-race", "-coverprofile", "coverage.txt", "-covermode", "atomic", "./..."}),
)
if err != nil {
panic(err)
}
_, err = dir.File("coverage.txt").Export(ctx, ".output/coverage.txt")
if err != nil {
panic(err)
}
```
## License
Apache License 2.0, see [LICENSE](LICENSE).