Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T14:51:09.000Z (8 months ago)
- Last Synced: 2024-04-29T16:02:08.960Z (8 months ago)
- Topics: ci-cd, dagger, dagger-io, magefile
- Language: Go
- Homepage:
- Size: 281 KB
- Stars: 7
- Watchers: 11
- 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).