-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Niels Bantilan <[email protected]>
- Loading branch information
1 parent
813a170
commit d90dd54
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -44,16 +44,16 @@ jobs: | |
mkdir ./flyte_proto | ||
docker run -i --rm -v $(pwd):/root $image_uri \ | ||
pyflyte --pkgs ${{ steps.example_name.outputs.EXAMPLE_NAME }} \ | ||
serialize \ | ||
package \ | ||
--image $image_uri \ | ||
--image mindmeld="ghcr.io/flyteorg/flytecookbook:core-latest" \ | ||
--image borebuster="ghcr.io/flyteorg/flytekit:py3.9-latest" \ | ||
workflows --folder ./flyte_proto | ||
--output ./flyte-package.tgz | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: snacks-${{ steps.example_id.outputs.EXAMPLE_ID }} | ||
path: ${{ matrix.directory }}/flyte_proto/* | ||
path: ${{ matrix.directory }}/flyte-package.tgz | ||
|
||
|
||
# Download all artifacts generated from the previous job. Startup a sandbox cluster then register all of them. | ||
|
@@ -78,9 +78,11 @@ jobs: | |
make setup | ||
- name: Register examples | ||
uses: unionai/[email protected] | ||
with: | ||
flytesnacks: false | ||
proto: ./download-artifact/**/* | ||
project: flytesnacks | ||
domain: development | ||
version: latest | ||
run: | | ||
for file in ./download-artifact/**/*; do | ||
flytectl register files \ | ||
--project flytesnacks \ | ||
--domain development \ | ||
--version latest \ | ||
--archive $file | ||
done |