diff --git a/union-hello-world/{{cookiecutter.project_name}}/workflows/hello-world.py b/union-hello-world/{{cookiecutter.project_name}}/workflows/hello-world.py index 2dfa42a..e4bf44a 100644 --- a/union-hello-world/{{cookiecutter.project_name}}/workflows/hello-world.py +++ b/union-hello-world/{{cookiecutter.project_name}}/workflows/hello-world.py @@ -2,25 +2,14 @@ image_spec = union.ImageSpec( - # The name of the image. - name="hello-world-image", + # Build the image using Union's built-in cloud builder (not locally on your machine) + builder="union", - # Use the `uv.lock` file in this project to define the dependencies included in the image. - requirements="uv.lock", + # The name of the image. + name="union-hello-world-image", - # The container registry to which the image will be pushed. - # Only used for Union BYOC. Not used for Union Serverless - # Uncomment this parameter if you are using Union BYOC.: - # - # * Substitute the actual name of the registry for . - # (for example if you are using GitHub's GHCR, you would use "ghcr.io/"). - # - # * Make sure you have Docker installed locally and are logged into that registry. - # - # * Make sure that the image, once pushed to the registry, is accessible to Union - # (for example, for GHCR, make sure the image is public). - # - # registry="" + # List of packages to install on the image + packages=-["union"], ) @union.task(container_image=image_spec) diff --git a/union-standard/{{cookiecutter.project_name}}/src/tasks/tasks.py b/union-standard/{{cookiecutter.project_name}}/src/tasks/tasks.py index 4c486f5..d38c6de 100644 --- a/union-standard/{{cookiecutter.project_name}}/src/tasks/tasks.py +++ b/union-standard/{{cookiecutter.project_name}}/src/tasks/tasks.py @@ -4,25 +4,14 @@ image_spec = union.ImageSpec( - # The name of the image. - name="standard-image", + # Build the image using Union's built-in cloud builder (not locally on your machine) + builder="union", - # Use the `uv.lock` file in this project to define the dependencies included in the image. - requirements="uv.lock", + # The name of the image. + name="union-standard-image", - # The container registry to which the image will be pushed. - # Only used for Union BYOC. Not used for Union Serverless - # Uncomment this parameter if you are using Union BYOC.: - # - # * Substitute the actual name of the registry for . - # (for example if you are using GitHub's GHCR, you would use "ghcr.io/"). - # - # * Make sure you have Docker installed locally and are logged into that registry. - # - # * Make sure that the image, once pushed to the registry, is accessible to Union - # (for example, for GHCR, make sure the image is public). - # - # registry="" + # List of packages to install on the image + packages=-["union"], ) @union.task(container_image=image_spec)