Skip to content

Commit

Permalink
airbyte-ci: java build - give ownership of built artifact to the curr…
Browse files Browse the repository at this point in the history
…ent image user
  • Loading branch information
alafanechere committed Dec 18, 2024
1 parent ab9a80e commit 5f4be50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,11 @@ async def with_airbyte_java_connector(context: ConnectorContext, connector_java_
)
base = with_integration_base_java(context, build_platform).with_entrypoint(["/airbyte/base.sh"])

current_user = (await base.with_exec(["whoami"]).stdout()).strip()
connector_container = (
base.with_workdir("/airbyte")
.with_env_variable("APPLICATION", application)
.with_mounted_directory("built_artifacts", build_stage.directory("/airbyte"))
.with_mounted_directory("built_artifacts", build_stage.directory("/airbyte"), owner=current_user)
.with_exec(sh_dash_c(["mv built_artifacts/* ."]))
)
return await finalize_build(context, connector_container)

0 comments on commit 5f4be50

Please sign in to comment.