Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deployImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/runIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
tags: true
token: ${{ secrets.FLYTE_BOT_PAT }}

- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.FLYTE_BOT_USERNAME }}
password: ${{ secrets.FLYTE_BOT_PAT }}

- name: Iterate through top level directories and build Docker images
env:
ACCESS_TOKEN: ${{ secrets.FLYTE_BOT_PAT }}
Expand Down Expand Up @@ -73,7 +74,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run integration tests
env:
host: ${{ secrets.FLYTE_HOST }}
Expand All @@ -86,4 +90,4 @@ jobs:
--client_id $client_id \
--client_secret $client_secret \
--image_suffix pr-${{ github.event.pull_request.number }} \
--image_hostname ghcr.io/${{ github.repository }}
--image_hostname ghcr.io/${{ github.repository }}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import union

image_spec = union.ImageSpec(

# The name of the image.
name="hello-world-image",

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

# 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 <my-registry>.
# (for example if you are using GitHub's GHCR, you would use "ghcr.io/<my-github-org>").
#
# * 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="<my-registry>"
)

@union.task(container_image=image_spec)
def hello_world_task(name: str) -> str:
return f"Hello, {name}!"

@union.workflow
def hello_world_wf(name: str = "world") -> str:
greeting = say_hello(name=name)
return greeting
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
image_spec = union.ImageSpec(

# The name of the image.
name="first-project-image",
name="standard-image",

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