Skip to content

Commit 0228419

Browse files
authored
[BEAM-8571] Release Go SDK containers, and use them. (apache#15365)
* [BEAM-8571] Go SDK use released container * [BEAM-9685] Release Go SDK containers.
1 parent 9228136 commit 0228419

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ task("pushAllDockerImages") {
335335
dependsOn(":runners:spark:3:job-server:container:dockerPush")
336336
dependsOn(":sdks:java:container:pushAll")
337337
dependsOn(":sdks:python:container:pushAll")
338+
dependsOn(":sdks:go:container:pushAll")
338339
for (version in project.ext.get("allFlinkVersions") as Array<*>) {
339340
dependsOn(":runners:flink:${version}:job-server-container:dockerPush")
340341
}

sdks/go/container/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ if (project.rootProject.hasProperty(["docker-pull-licenses"])) {
7676
}
7777
dockerPrepare.dependsOn 'skipPullLicenses'
7878
}
79+
80+
task pushAll {
81+
dependsOn ":sdks:go:container:dockerPush"
82+
}

sdks/go/pkg/beam/options/jobopts/options.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727

2828
"sync/atomic"
2929

30+
"github.com/apache/beam/sdks/v2/go/pkg/beam/core"
3031
"github.com/apache/beam/sdks/v2/go/pkg/beam/internal/errors"
3132
"github.com/apache/beam/sdks/v2/go/pkg/beam/log"
3233
)
@@ -141,7 +142,7 @@ func IsLoopback() bool {
141142
// Convenience function.
142143
func GetEnvironmentConfig(ctx context.Context) string {
143144
if *EnvironmentConfig == "" {
144-
*EnvironmentConfig = os.ExpandEnv("apache/beam_go_sdk:latest")
145+
*EnvironmentConfig = os.ExpandEnv("apache/beam_go_sdk:" + core.SdkVersion)
145146
log.Infof(ctx, "No environment config specified. Using default config: '%v'", *EnvironmentConfig)
146147
}
147148
return *EnvironmentConfig

0 commit comments

Comments
 (0)