mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
ci: update dagger workflows
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user