-
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
Dec 9, 2024
1 parent
b303ca3
commit ff5c136
Showing
4 changed files
with
77 additions
and
30 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
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
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,47 @@ | ||
name: Login to Perses | ||
description: Run the `login` command of percli to authenticate to the API server | ||
inputs: | ||
url: | ||
description: The URL of the Perses API server where to deploy the dashboard preview. | ||
required: true | ||
directory: | ||
description: Path to the directory containing the resources consumed by the command (mutually exclusive with `file`). | ||
required: false | ||
file: | ||
description: Path to the file that contains the resources consumed by the command (mutually exclusive with `directory`). | ||
required: false | ||
username: | ||
description: Username for basic authentication to the API server. | ||
required: false | ||
password: | ||
description: Password for basic authentication to the API server. | ||
required: false | ||
token: | ||
description: Bearer token for authentication to the API server. | ||
required: false | ||
provider: | ||
description: External authentication provider identifier. (slug_id) | ||
required: false | ||
client-id: | ||
description: Client ID used for robotic access when using external authentication provider. | ||
required: false | ||
client-secret: | ||
description: Client Secret used for robotic access when using external authentication provider. | ||
required: false | ||
insecure-skip-tls-verify: | ||
description: If true the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Login to the Perses API | ||
run: | | ||
percli login ${{ inputs.url }} \ | ||
$([[ -n "${{ inputs.username }}" ]] && echo "-u ${{ inputs.username }}") \ | ||
$([[ -n "${{ inputs.password }}" ]] && echo "-p ${{ inputs.password }}") \ | ||
$([[ -n "${{ inputs.token }}" ]] && echo "--token ${{ inputs.token }}") \ | ||
$([[ -n "${{ inputs.provider }}" ]] && echo "--provider ${{ inputs.provider }}") \ | ||
$([[ -n "${{ inputs.client-id }}" ]] && echo "--client-id ${{ inputs.client-id }}") \ | ||
$([[ -n "${{ inputs.client-secret }}" ]] && echo "--client-secret ${{ inputs.client-secret }}") \ | ||
$([[ "${{ inputs.insecure-skip-tls-verify}}" == "true" ]] && echo "--insecure-skip-tls-verify") | ||
shell: bash |
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