Skip to content

Commit

Permalink
cyclic loop workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw committed Oct 4, 2024
1 parent 3cc4b42 commit aef6cd3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
19 changes: 19 additions & 0 deletions tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ includes:
- utils: ./utils.yaml

tasks:
############
# WORKAROUND
############
- name: log
description: "LeapfrogAI logger"
inputs:
log:
description: "Content to be logged to the CLI"
required: true
enable:
description: "Whether to enable or disable the logging"
default: "true"
required: false
actions:
- task: utils:log
with:
log: ${{ .inputs.log }}
enable: ${{ .inputs.enable }}

#########
# UTILITY
#########
Expand Down
9 changes: 4 additions & 5 deletions tasks/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ includes:
# LEAPFROGAI-SPECIFIC TASKS
###########################
- create: ./create.yaml
- utils: ./utils.yaml

tasks:
- name: e2e-test-user
Expand All @@ -20,15 +19,15 @@ tasks:
- name: k3d-cpu-cluster-slim
description: "Creates a UDS K3d cluster with slim UDS Core and CPU-only Capability"
actions:
- task: utils:log
- task: create:log
with:
log: "Creating a UDS K3d cluster with slim UDS Core and CPU-only Capability"
- task: setup-common:k3d-test-cluster

- name: k3d-gpu-cluster-slim
description: "Creates a UDS K3d cluster with slim UDS Core and NVIDIA GPU Capability"
actions:
- task: utils:log
- task: create:log
with:
log: "Creating a UDS K3d cluster with slim UDS Core and NVIDIA GPU Capability"
- task: create:k3d-gpu-image
Expand All @@ -42,7 +41,7 @@ tasks:
- name: k3d-cpu-cluster-full
description: "Creates a UDS K3d cluster with full UDS Core and CPU-only Capability"
actions:
- task: utils:log
- task: create:log
with:
log: "Creating a UDS K3d cluster with full UDS Core and CPU-only Capability"
- task: setup-common:k3d-full-cluster
Expand All @@ -54,7 +53,7 @@ tasks:
- name: k3d-gpu-cluster-full
description: "Creates a UDS K3d cluster with full UDS Core and NVIDIA GPU Capability"
actions:
- task: utils:log
- task: create:log
with:
log: "Creating a UDS K3d cluster with full UDS Core and NVIDIA GPU Capability"
- task: create:k3d-gpu-image
Expand Down

0 comments on commit aef6cd3

Please sign in to comment.