This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
forked from maslow/experiment-setup-k8s-in-actions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
67 lines (56 loc) · 1.64 KB
/
action.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions
name: 'Auto setup sealos'
description: 'Auto setup sealos'
author: 'cuisongliu'
branding:
# https://actions-cool.github.io/github-action-branding/
icon: 'file'
color: 'blue'
inputs:
type:
description: 'Type of sealos cmd'
required: true
default: 'install'
sealosVersion:
description: 'sealos release version'
default: "4.1.3"
sealosGit:
description: 'sealos git addr'
default: "https://github.com/labring/sealos.git"
sealosGitBranch:
description: 'sealos git branch'
default: "main"
goAddr:
description: 'go download addr'
default: ""
pruneCRI:
description: 'remove cri pkg'
default: "true"
autoFetch:
description: 'auto fetch code'
default: "true"
working-directory:
description: "Directory to run `sealos build` from, if not project root"
default: "."
#outputs:
# result:
# description: action result
runs:
using: "composite"
steps:
- run: |
sudo mkdir -p /tmp/.sealos-action
sudo cp -rf /home/runner/work/_actions/labring/sealos-action/v0.0.7/* /tmp/.sealos-action/
bash /tmp/.sealos-action/action.sh
shell: bash
id: default
env:
cmd: ${{ inputs.type }}
sealos_version: ${{ inputs.sealosVersion }}
sealosGit: ${{ inputs.sealosGit }}
sealosGitBranch: ${{ inputs.sealosGitBranch }}
autoFetch: ${{ inputs.autoFetch }}
pruneCRI: ${{ inputs.pruneCRI }}
goAddr: ${{ inputs.goAddr }}
action_directory: .sealos-action
working-directory: ${{ inputs.working-directory }}