Skip to content

Commit 7518f4a

Browse files
committed
update
Signed-off-by: Peeter Piegaze <[email protected]>
1 parent 8a6b3a1 commit 7518f4a

File tree

25 files changed

+34
-99
lines changed

25 files changed

+34
-99
lines changed

basic-union-template/{{cookiecutter.project_name}}/workflows/workflows.py

-98
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import union
2+
3+
image_spec = union.ImageSpec(
4+
5+
# The name of the image.
6+
name="hello-world-image",
7+
8+
# Use the `uv.lock` file in this project to define the dependencies included in the image.
9+
requirements="uv.lock",
10+
11+
# The container registry to which the image will be pushed.
12+
# Only used for Union BYOC. Not used for Union Serverless
13+
# Uncomment this parameter if you are using Union BYOC.:
14+
#
15+
# * Substitute the actual name of the registry for <my-registry>.
16+
# (for example if you are using GitHub's GHCR, you would use "ghcr.io/<my-github-org>").
17+
#
18+
# * Make sure you have Docker installed locally and are logged into that registry.
19+
#
20+
# * Make sure that the image, once pushed to the registry, is accessible to Union
21+
# (for example, for GHCR, make sure the image is public).
22+
#
23+
# registry="<my-registry>"
24+
)
25+
26+
@union.task(container_image=image_spec)
27+
def hello_world_task(name: str) -> str:
28+
return f"Hello, {name}!"
29+
30+
@union.workflow
31+
def hello_world_wf(name: str = "world") -> str:
32+
greeting = say_hello(name=name)
33+
return greeting
File renamed without changes.

first-project/{{cookiecutter.project_name}}/src/tasks/tasks.py renamed to union-standard/{{cookiecutter.project_name}}/src/tasks/tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
image_spec = union.ImageSpec(
66

77
# The name of the image.
8-
name="first-project-image",
8+
name="standard-image",
99

1010
# Use the `uv.lock` file in this project to define the dependencies included in the image.
1111
requirements="uv.lock",

0 commit comments

Comments
 (0)