Skip to content

Commit

Permalink
Add new action to install percli
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine THEBAUD <[email protected]>
  • Loading branch information
Antoine THEBAUD committed Nov 18, 2024
1 parent 18e81c8 commit 583720e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test_install_percli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test Install percli
on:
workflow_dispatch: # Allow manual triggering
push:
branches:
- main
- release/*
- snapshot/*
tags:
- v*
pull_request:
merge_group:
jobs:
test-install-percli:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install percli
uses: ./actions/install_percli
with:
cli_version: "latest"
21 changes: 21 additions & 0 deletions actions/install_percli/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Install percli"
description: "Install the Perses CLI"
inputs:
cli_version:
description: "Version of percli to install"
default: "latest"
runs:
using: composite
steps:
- name: Install percli from docker image
run: |
docker pull persesdev/perses:${{ inputs.cli_version }}
docker create --name tempcontainer persesdev/perses:${{ inputs.cli_version }}
docker cp tempcontainer:/bin/percli /usr/local/bin/percli
docker rm tempcontainer
shell: bash

- name: Verify installation
run: |
percli version
shell: bash

0 comments on commit 583720e

Please sign in to comment.