Skip to content

Commit d6da9c9

Browse files
authored
Create action.yml
1 parent b553d6a commit d6da9c9

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

action.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright (c) 2024 OpenFaaS Ltd
2+
name: 'setup-k3sup'
3+
description: 'Install K3s with k3sup'
4+
branding:
5+
icon: 'arrow-right-circle'
6+
color: 'gray-dark'
7+
8+
inputs:
9+
cache:
10+
description: Whether to enable caching for the downloaded k3sup binary
11+
required: false
12+
default: 'true'
13+
14+
runs:
15+
using: 'composite'
16+
steps:
17+
- name: Install k3sup
18+
shell: bash
19+
run: |
20+
curl -sLS https://get.k3sup.dev | sudo -E sh
21+
22+
- name: Install k3s and merge into kubeconfig
23+
shell: bash
24+
run: |
25+
mkdir -p ~/.kube/
26+
k3sup install \
27+
--local \
28+
--k3s-channel latest \
29+
--merge \
30+
--local-path ~/.kube/config
31+
32+
- name: Wait until k3s is ready
33+
shell: bash
34+
run: |
35+
k3sup ready \
36+
--kubeconfig ~/.kube/config \
37+
--context default
38+
39+

0 commit comments

Comments
 (0)