Skip to content

Commit

Permalink
Merge pull request #61 from fluentci-io/fix/agent-exec-cwd
Browse files Browse the repository at this point in the history
fix(agent): handle undefined workdir
  • Loading branch information
tsirysndr authored Jul 27, 2024
2 parents 2128fc6 + b55e495 commit 6eb071c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ Requirements:

**Latest (Desktop):**

- `Mac`: arm64: [fluentci-studio_v0.1.7_arm64.dmg](https://github.com/fluentci-io/fluentci-studio/releases/download/v0.1.7/fluentci-studio_v0.1.7_arm64.dmg) intel: [fluentci-studio_v0.1.7_x64.dmg](https://github.com/fluentci-io/fluentci-studio/releases/download/v0.1.7/fluentci-studio_v0.1.7_x64.dmg)
- `Linux`: [fluentci-studio_v0.1.7.AppImage](https://github.com/fluentci-io/fluentci-studio/releases/download/v0.1.7/fluentci-studio_v0.1.7.AppImage)
- `Mac`: arm64: [fluentci-studio_v0.1.8_arm64.dmg](https://github.com/fluentci-io/fluentci-studio/releases/download/v0.1.8/fluentci-studio_v0.1.8_arm64.dmg) intel: [fluentci-studio_v0.1.8_x64.dmg](https://github.com/fluentci-io/fluentci-studio/releases/download/v0.1.8/fluentci-studio_v0.1.8_x64.dmg)
- `Linux`: [fluentci-studio_v0.1.8.AppImage](https://github.com/fluentci-io/fluentci-studio/releases/download/v0.1.8/fluentci-studio_v0.1.8.AppImage)

**Latest (CLI):**

- `Mac`: arm64: [fluentci_v0.15.5_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.5/fluentci_v0.15.5_aarch64-apple-darwin.tar.gz) intel: [fluentci_v0.15.5_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.5/fluentci_v0.15.5_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci_v0.15.5_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.5/fluentci_v0.15.5_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci_v0.15.5_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.5/fluentci_v0.15.5_aarch64-unknown-linux-gnu.tar.gz)
- `Mac`: arm64: [fluentci_v0.15.6_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.6/fluentci_v0.15.6_aarch64-apple-darwin.tar.gz) intel: [fluentci_v0.15.6_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.6/fluentci_v0.15.6_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci_v0.15.6_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.6/fluentci_v0.15.6_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci_v0.15.6_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.15.6/fluentci_v0.15.6_aarch64-unknown-linux-gnu.tar.gz)

## ✨ Quick Start

Expand All @@ -110,7 +110,7 @@ fluentci studio
fluentci --help

Usage: fluentci [pipeline] [jobs...]
Version: 0.15.5
Version: 0.15.6

Description:

Expand Down
10 changes: 6 additions & 4 deletions src/cmd/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ async function startAgent() {
);
await spawnFluentCI(
logger,
`${dir(
"home"
)}/.fluentci/builds/${project_id}/${sha256}/${workDir}`,
`${dir("home")}/.fluentci/builds/${project_id}/${sha256}/${
workDir || "."
}`,
pipeline,
jobs,
runId,
Expand All @@ -146,7 +146,9 @@ async function startAgent() {
await extractZipBlob(blob, project_id, sha256);
await spawnFluentCI(
logger,
`${dir("home")}/.fluentci/builds/${project_id}/${sha256}/${workDir}`,
`${dir("home")}/.fluentci/builds/${project_id}/${sha256}/${
workDir || "."
}`,
pipeline,
jobs,
runId,
Expand Down
2 changes: 1 addition & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dir } from "../deps.ts";
export const VERSION = "0.15.5";
export const VERSION = "0.15.6";

export const BASE_URL = "https://api.fluentci.io/v1";

Expand Down

0 comments on commit 6eb071c

Please sign in to comment.