-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01df360
commit db634ba
Showing
2 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
airbyte-ci/connectors/pipelines/tests/test_builds/dummy_build_customization.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# | ||
# Copyright (c) 2023 Airbyte, Inc., all rights reserved. | ||
# | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from dagger import Container | ||
|
||
|
||
async def pre_connector_install(base_image_container: Container) -> Container: | ||
"""This function will run before the connector installation. | ||
It can mutate the base image container. | ||
Args: | ||
base_image_container (Container): The base image container to mutate. | ||
Returns: | ||
Container: The mutated base image container. | ||
""" | ||
return await base_image_container.with_env_variable("MY_PRE_BUILD_ENV_VAR", "my_pre_build_env_var_value") | ||
|
||
|
||
async def post_connector_install(connector_container: Container) -> Container: | ||
"""This function will run after the connector installation during the build process. | ||
It can mutate the connector container. | ||
Args: | ||
connector_container (Container): The connector container to mutate. | ||
Returns: | ||
Container: The mutated connector container. | ||
""" | ||
return await connector_container.with_env_variable("MY_POST_BUILD_ENV_VAR", "my_post_build_env_var_value") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters