Skip to content

Commit

Permalink
docs: download liqoctl from tars
Browse files Browse the repository at this point in the history
  • Loading branch information
aleoli authored and adamjensenbot committed Jun 24, 2022
1 parent f8a1315 commit e14a720
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ jobs:

- name: Create Archives
run: |
cp liqoctl-${{ matrix.goos }}-${{ matrix.goarch }} kubectl-liqo
tar -czvf liqoctl-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz kubectl-liqo
cp liqoctl-${{ matrix.goos }}-${{ matrix.goarch }} liqoctl
tar -czvf liqoctl-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz liqoctl
- name: Upload Liqoctl
uses: actions/upload-artifact@v2
Expand Down
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,16 @@ def generate_liqoctl_install(platform: str, arch: str) -> str:
curl --fail -LSO \"{__get_download_url('liqoctl-windows-amd64')}\"\n\
```\n"
elif platform == 'darwin':
file = __get_download_url(f"liqoctl-darwin-{arch}")
file = __get_download_url(f"liqoctl-darwin-{arch}.tar.gz")
return f"```bash\n\
curl --fail -LS --output liqoctl \"{file}\"\n\
curl --fail -LS \"{file}\" | tar -xz\n\
chmod +x liqoctl\n\
sudo mv liqoctl /usr/local/bin/liqoctl\n\
```\n"
elif platform == 'linux':
file = __get_download_url(f"liqoctl-linux-{arch}")
file = __get_download_url(f"liqoctl-linux-{arch}.tar.gz")
return f"```bash\n\
curl --fail -LS --output liqoctl \"{file}\"\n\
curl --fail -LS \"{file}\" | tar -xz\n\
sudo install -o root -g root -m 0755 liqoctl /usr/local/bin/liqoctl\n\
```\n"

Expand Down

0 comments on commit e14a720

Please sign in to comment.