Skip to content

Commit

Permalink
fix approach
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jul 17, 2023
1 parent ca1a85b commit c1049c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/dagger-pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
try:
import anyio
import dagger
from dagger import BuildArg
except ImportError:
raise ImportError(
"Dagger is not installed. Please install it with `pip install dagger-io` first."
Expand All @@ -25,7 +26,9 @@ async def main():
# )
# else:
sources = await top_level_dir.docker_build(
build_args=os.getenv("BASE_IMAGE_TAG")
build_args=BuildArg("BASE_IMAGE_TAG", os.getenv("BASE_IMAGE_TAG"))
if os.getenv("BASE_IMAGE_TAG")
else None,
)

username = sources.with_exec(["whoami"])
Expand Down

0 comments on commit c1049c0

Please sign in to comment.