Skip to content
This repository was archived by the owner on Aug 7, 2022. It is now read-only.

Commit 6985da6

Browse files
committed
add dagger
1 parent 046a614 commit 6985da6

File tree

333 files changed

+15771
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+15771
-0
lines changed

ci.cue

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
package main
2+
3+
import (
4+
"dagger.io/dagger"
5+
6+
"universe.dagger.io/bash"
7+
"universe.dagger.io/alpine"
8+
"universe.dagger.io/go"
9+
10+
"github.com/mockingio/dagger/ci/golangci"
11+
)
12+
13+
dagger.#Plan & {
14+
client: filesystem: ".": read: contents: dagger.#FS
15+
16+
actions: {
17+
_source: client.filesystem.".".read.contents
18+
19+
test: {
20+
unit: go.#Test & {
21+
source: _source
22+
package: "./..."
23+
command: flags: "-race": true
24+
}
25+
}
26+
27+
lint: {
28+
go: golangci.#Lint & {
29+
source: _source
30+
version: "1.45"
31+
}
32+
}
33+
34+
version: {
35+
_image: alpine.#Build & {
36+
packages: bash: _
37+
packages: curl: _
38+
packages: git: _
39+
}
40+
41+
_revision: bash.#Run & {
42+
input: _image.output
43+
workdir: "/src"
44+
mounts: source: {
45+
dest: "/src"
46+
contents: _source
47+
}
48+
49+
script: contents: #"""
50+
printf "$(git rev-parse --short HEAD)" > /revision
51+
"""#
52+
export: files: "/revision": string
53+
}
54+
55+
output: _revision.export.files["/revision"]
56+
}
57+
}
58+
59+
}

cue.mod/dagger.mod

Whitespace-only changes.

cue.mod/dagger.sum

Whitespace-only changes.

cue.mod/module.cue

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module: ""

cue.mod/pkg/.gitattributes

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/cue.mod/module.cue

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/cue.mod/version.txt

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/compat.cue

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/core/exec.cue

+87
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/core/fs.cue

+153
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/core/git.cue

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)