Skip to content

Commit fdba38e

Browse files
author
Antoine THEBAUD
committed
Add new action to install percli
Signed-off-by: Antoine THEBAUD <[email protected]>
1 parent 18e81c8 commit fdba38e

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

Diff for: .github/workflows/test_install_percli.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Test Install percli
2+
on:
3+
workflow_dispatch: # Allow manual triggering
4+
push:
5+
branches:
6+
- main
7+
- release/*
8+
- snapshot/*
9+
tags:
10+
- v*
11+
pull_request:
12+
merge_group:
13+
jobs:
14+
test-install-cli:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install percli
21+
uses: ./actions/install_percli
22+
with:
23+
cli_version: "latest"

Diff for: actions/install_percli/action.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Install percli"
2+
description: "Install the Perses CLI"
3+
inputs:
4+
cli_version:
5+
description: "Version of percli to install"
6+
default: "latest"
7+
runs:
8+
using: composite
9+
steps:
10+
- name: Install percli from docker image
11+
run: |
12+
docker pull persesdev/perses:${{ inputs.cli_version }}
13+
docker create --name tempcontainer persesdev/perses:${{ inputs.cli_version }}
14+
docker cp tempcontainer:/bin/percli /usr/local/bin/percli
15+
docker rm tempcontainer
16+
shell: bash
17+
18+
- name: Verify installation
19+
run: |
20+
percli version
21+
shell: bash

0 commit comments

Comments
 (0)