Skip to content

Commit

Permalink
Add GOLANG_VERSION build arg for tilt (#13079)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahsivjar authored May 7, 2024
1 parent 66eaa7d commit 92f3434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ script_dir = os.path.join(config.main_dir, 'script')
default_kibana_port = 5601
kibana_host = "localhost"
kibana_base_path = ""
golang_version = str(read_file('./.go-version')).strip()

# checks whether (dev mode) kibana is already running at given port,
# and returns the URL it is redirected to
Expand Down Expand Up @@ -41,7 +42,7 @@ def discover_kibana():

custom_build(
'apm-server',
'DOCKER_BUILDKIT=1 docker build -t $EXPECTED_REF -f packaging/docker/Dockerfile .',
'DOCKER_BUILDKIT=1 docker build -t $EXPECTED_REF --build-arg GOLANG_VERSION=%s -f packaging/docker/Dockerfile .' % golang_version,
deps = ['.'],
ignore = ['**/*_test.go', 'tools/**', 'systemtest/**', 'docs/**'],
)
Expand Down

0 comments on commit 92f3434

Please sign in to comment.