Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
46 lines (42 loc) · 1.51 KB
/
Copy pathaction.yml
File metadata and controls
46 lines (42 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Setup Riptides
description: Install the Riptides daemon and join a control plane using GitHub Actions OIDC. No join tokens required.
inputs:
controlplane-url:
description: Control plane URL (e.g. https://abc123.console.riptides.io)
required: true
audience:
description: OIDC token audience, must match the GitHubActionsVerifier configured on the control plane
required: false
default: riptides
version:
description: "Daemon version to install (default: latest)"
required: false
default: latest
wait-for-ready:
description: Wait for the daemon to be fully ready (driver connected, workload identity issued) before finishing, so connections made by the next step are not missed
required: false
default: "true"
ready-timeout:
description: How long to wait, in seconds, for the daemon to become ready
required: false
default: "120"
branding:
icon: shield
color: purple
runs:
using: composite
steps:
- name: Install Riptides daemon
shell: bash
env:
DAEMON_VERSION: ${{ inputs.version }}
run: |
wait_args=()
if [[ "${{ inputs.wait-for-ready }}" == "true" ]]; then
wait_args=(--wait-ready --wait-timeout "${{ inputs.ready-timeout }}")
fi
curl -fsSL https://docs.riptides.io/install.sh | sudo -E bash -s -- \
--controlplane-url "${{ inputs.controlplane-url }}" \
--plugin GitHubActions \
--github-actions-audience "${{ inputs.audience }}" \
"${wait_args[@]}"