Fix ./ci to be workdir-independent
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
module: ""
|
@@ -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/amd64"
|
||||
|
||||
client: filesystem: {
|
||||
"../": read: exclude: [
|
||||
"ci",
|
||||
"node_modules",
|
||||
"cmd/dagger/dagger",
|
||||
"cmd/dagger/dagger-debug",
|
||||
]
|
||||
"./build": write: contents: actions.build.export.directories["/build"]
|
||||
}
|
||||
client: filesystem: "./build": write: contents: actions.build.export.directories["/build"]
|
||||
|
||||
actions: {
|
||||
_mountGoCache: {
|
||||
@@ -36,7 +28,7 @@ dagger.#Plan & {
|
||||
|
||||
_mountSourceCode: {
|
||||
mounts: "dagger source code": {
|
||||
contents: client.filesystem."../".read.contents
|
||||
contents: _source.output
|
||||
dest: "/usr/src/dagger"
|
||||
}
|
||||
workdir: mounts["dagger source code"].dest
|
||||
|
Reference in New Issue
Block a user