Skip to content

Commit

Permalink
fix kamal installation
Browse files Browse the repository at this point in the history
fix kamal installation
  • Loading branch information
tsirysndr committed Jul 17, 2024
1 parent abcd658 commit b89855d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Show kamal version
run: |
fluentci run --wasm . help
flox activate -- type kamal
flox activate -- kamal version
working-directory: example
env:
Expand Down
9 changes: 3 additions & 6 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ pub fn setup() -> Result<(), Error> {
dag()
.pipeline("setup kamal")?
.flox()?
.with_exec(vec!["flox", "install", "ruby"])?
.with_exec(vec!["gem", "install", "kamal"])?
.with_exec(vec!["type ruby /dev/null 2> /dev/null || flox install ruby"])?
.with_exec(vec!["type kamal /dev/null 2> /dev/null || gem install --user-install kamal"])?
.with_exec(vec!["[ -d $HOME/.local/bin ] || mkdir -p $HOME/.local/bin"])?
.with_exec(vec![
"ln",
"-s",
"`gem environment gemhome`/bin/kamal",
"$HOME/.local/bin/kamal",
"[ -f $HOME/.local/bin/kamal ] || ln -s `gem environment user_gemhome`/bin/kamal $HOME/.local/bin/kamal",
])?
.stdout()?;
Ok(())
Expand Down

0 comments on commit b89855d

Please sign in to comment.