-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Antoine THEBAUD <[email protected]>
- Loading branch information
Antoine THEBAUD
committed
Nov 18, 2024
1 parent
18e81c8
commit 583720e
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |