Fix ./ci to be workdir-independent
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
parent
aacabb1393
commit
860759448d
@ -1 +0,0 @@
|
|||||||
../../../pkg/dagger.io
|
|
@ -1 +0,0 @@
|
|||||||
../../../pkg/universe.dagger.io
|
|
12
ci/main.cue
12
ci/main.cue
@ -13,15 +13,7 @@ dagger.#Plan & {
|
|||||||
// platform: "linux/aarch64"
|
// platform: "linux/aarch64"
|
||||||
platform: "linux/amd64"
|
platform: "linux/amd64"
|
||||||
|
|
||||||
client: filesystem: {
|
client: filesystem: "./build": write: contents: actions.build.export.directories["/build"]
|
||||||
"../": read: exclude: [
|
|
||||||
"ci",
|
|
||||||
"node_modules",
|
|
||||||
"cmd/dagger/dagger",
|
|
||||||
"cmd/dagger/dagger-debug",
|
|
||||||
]
|
|
||||||
"./build": write: contents: actions.build.export.directories["/build"]
|
|
||||||
}
|
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
_mountGoCache: {
|
_mountGoCache: {
|
||||||
@ -36,7 +28,7 @@ dagger.#Plan & {
|
|||||||
|
|
||||||
_mountSourceCode: {
|
_mountSourceCode: {
|
||||||
mounts: "dagger source code": {
|
mounts: "dagger source code": {
|
||||||
contents: client.filesystem."../".read.contents
|
contents: _source.output
|
||||||
dest: "/usr/src/dagger"
|
dest: "/usr/src/dagger"
|
||||||
}
|
}
|
||||||
workdir: mounts["dagger source code"].dest
|
workdir: mounts["dagger source code"].dest
|
||||||
|
1
cue.mod/pkg
Symbolic link
1
cue.mod/pkg
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../pkg
|
15
source.cue
Normal file
15
source.cue
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"dagger.io/dagger"
|
||||||
|
)
|
||||||
|
|
||||||
|
_source: dagger.#Source & {
|
||||||
|
path: "."
|
||||||
|
exclude: [
|
||||||
|
"ci",
|
||||||
|
"node_modules",
|
||||||
|
"cmd/dagger/dagger",
|
||||||
|
"cmd/dagger/dagger-debug",
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user