Skip to content

Commit

Permalink
fix(cli): workspace set fix when passing path
Browse files Browse the repository at this point in the history
  • Loading branch information
shinybrar committed Jun 18, 2024
1 parent 13e2f8f commit 2d9ab04
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/cli/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def set(workspace: str):
console.print(f"Locating workspace {workspace}", style="italic blue")
if Path(workspace).absolute().exists():
console.print(f"Reading {workspace}", style="italic blue")
config = reader.workspace(workspace)
config = reader.workspace(Path(workspace).absolute())
elif workspace in localstems:
for possibility in localspaces.glob(f"{workspace}.y*ml"):
console.print(f"Reading {possibility}", style="italic blue")
Expand Down
42 changes: 42 additions & 0 deletions workflow/examples/workflow-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: "2"
name: workflow-dev-pipeline

defaults:
user: developer
site: local

deployments:
- name: small
site: local
image: chimefrb/workflow:latest
sleep: 1
resources:
cores: 2
ram: 1G
replicas: 2
- name: medium
site: chime
sleep: 1
image: chimefrb/workflow:latest
resources:
cores: 4
ram: 2G
replicas: 2

pipeline:
runs_on: small
steps:
- name: echo
stage: 1
runs_on: medium
work:
site: chime
command: ["ls", "-lah"]
- name: uname
stage: 2
work:
command: ["uname", "-a"]
- name: printenv
stage: 3
work:
command: ["printenv"]

0 comments on commit 2d9ab04

Please sign in to comment.