ci: update dagger workflows

This commit is contained in:
Slug-Boi
2024-05-17 22:05:42 +02:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ func main() {
source := client.Container().
From("golang:1.21").
WithDirectory("/src", client.Host().Directory(".", dagger.HostDirectoryOpts{
Exclude: []string{"ci/"},
Exclude: []string{},
})).WithMountedCache("/src/dagger_dep_cache/go_dep", goCache)
geese := []string{"darwin", "linux", "windows"}
@@ -34,7 +34,7 @@ func main() {
// set the working directory in the container
// install application dependencies
runner := source.WithWorkdir("/src").
runner := source.WithWorkdir("/src/src_code/go_src/").
WithExec([]string{"go", "mod", "tidy"})
// run application tests
+2 -2
View File
@@ -26,12 +26,12 @@ func main() {
source := client.Container().
From("golang:1.21").
WithDirectory("/src", client.Host().Directory(".", dagger.HostDirectoryOpts{
Exclude: []string{"ci/", "build/"},
Exclude: []string{"build/"},
})).WithMountedCache("/src/dagger_dep_cache/go_dep", goCache)
// set the working directory in the container
// install application dependencies
runner := source.WithWorkdir("/src").
runner := source.WithWorkdir("/src/src_code/go_src/").
WithExec([]string{"go", "mod", "tidy"})
// run application tests