This repository has been archived by the owner on Feb 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c04ea21
commit 8e4c033
Showing
3 changed files
with
172 additions
and
1 deletion.
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
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
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 |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/defenseunicorns/uds-cli/v0.14.0/tasks.schema.json | ||
includes: | ||
######################### | ||
# UDS COMMON TASK IMPORTS | ||
######################### | ||
- deploy-common: https://raw.githubusercontent.com/defenseunicorns/uds-common/82e63be82766a2e550a847af904b2d738c9d3478/tasks/deploy.yaml | ||
|
||
tasks: | ||
########### | ||
# REUSEABLE | ||
########### | ||
|
||
- name: package | ||
description: "Deploy a Zarf package" | ||
inputs: | ||
path: | ||
description: "Path to the Zarf package to being deployed" | ||
required: true | ||
zarfConfig: | ||
description: "Zarf Config of the Zarf package being deployed" | ||
default: "" | ||
required: false | ||
options: | ||
description: "Extra Zarf package deployment options" | ||
default: "--log-level warn --no-progress --confirm" | ||
required: false | ||
actions: | ||
- cmd: | | ||
printf "\n🐸 Deploying package at ${{ .inputs.path }}\n\n" | ||
- description: Get the current Zarf package name | ||
cmd: cat ${{ .inputs.path }}/zarf.yaml | uds zarf tools yq .metadata.name | ||
setVariables: | ||
- name: PACKAGE_NAME | ||
- description: "Deploy the Zarf package" | ||
env: | ||
- ZARF_CONFIG=${{ .inputs.zarfConfig }} | ||
cmd: | | ||
uds zarf package deploy ${{ .inputs.path }}/zarf-package-${PACKAGE_NAME}-${ARCHITECTURE}-${VERSION}.tar.zst ${{ .inputs.options }} | ||
- name: bundle | ||
description: "Deploy a UDS bundle" | ||
inputs: | ||
path: | ||
description: "Path to the UDS Bundle to being deployed" | ||
required: true | ||
udsConfig: | ||
description: "UDS Config of the UDS Bundle being deployed" | ||
default: "" | ||
required: false | ||
options: | ||
description: "Extra UDS Bundle deployment options" | ||
default: "--log-level warn" | ||
required: false | ||
architecture: | ||
description: "Architecture of the UDS Bundle being created" | ||
required: true | ||
version: | ||
description: "Set the version of the UDS Bundle and target image(s)" | ||
required: true | ||
actions: | ||
- cmd: | | ||
printf "\n🐸 Deploying package at ${{ .inputs.path }}\n\n" | ||
- task: deploy-common:test-bundle | ||
env: | ||
- UDS_ARCH=${{ .inputs.architecture }} | ||
with: | ||
options: ${{ .inputs.options }} | ||
path: ${{ .inputs.path }} | ||
|
||
########## | ||
# PACKAGES | ||
########## | ||
|
||
- name: api | ||
description: "Deploy the LeapfrogAI API Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/api" | ||
zarfConfig: "packages/api/zarf-config.yaml" | ||
|
||
- name: ui | ||
description: "Deploy the LeapfrogAI API Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/ui" | ||
zarfConfig: "packages/ui/zarf-config.yaml" | ||
|
||
- name: supabase | ||
description: "Deploy the Supabase Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/supabase" | ||
|
||
- name: repeater | ||
description: "Deploy the Repeater Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/repeater" | ||
|
||
- name: vllm | ||
description: "Deploy the vLLM Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/vllm" | ||
|
||
- name: llama-cpp-python | ||
description: "Deploy the LLaMA-CPP-Python Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/llama-cpp-python" | ||
|
||
- name: text-embeddings | ||
description: "Deploy the Text-Embeddings Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/text-embeddings" | ||
|
||
- name: whisper | ||
description: "Deploy the Whisper Zarf package" | ||
actions: | ||
- task: package | ||
with: | ||
path: "packages/whisper" |