Skip to content

Commit 5515341

Browse files
committed
up node version
1 parent 060fdb8 commit 5515341

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dagger-ci/main.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
2429
type Aiplan struct{}
2530

2631
func (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).

0 commit comments

Comments
 (0)