File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,17 @@ import (
2121 "strings"
2222)
2323
24+ const (
25+ nodeVersion = "node:22.18.0"
26+ goVersion = "golang:alpine"
27+ )
28+
2429type Aiplan struct {}
2530
2631func (m * Aiplan ) GoBuildEnv (source * dagger.Directory ) * dagger.Container {
2732 goCache := dag .CacheVolume ("go" )
2833 return dag .Container ().
29- From ("golang:alpine" ).
34+ From (goVersion ).
3035 WithDirectory ("/src" , source .Directory ("aiplan.go/" )).
3136 WithWorkdir ("/src" ).
3237 WithEnvVariable ("GOOS" , "linux" ).
@@ -40,7 +45,7 @@ func (m *Aiplan) FrontBuildEnv(version string, source *dagger.Directory) *dagger
4045 quasarCache := dag .CacheVolume ("next" )
4146
4247 return dag .Container ().
43- From ("node:20.8.0" ).
48+ From (nodeVersion ).
4449 WithDirectory ("/src" , source ).
4550 WithWorkdir ("/src" ).
4651 WithMountedCache ("/src/node_modules" , nodeCache ).
You can’t perform that action at this time.
0 commit comments