-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
38 lines (37 loc) · 1.36 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
name: k install
description: Installs and configures k.
inputs:
gitops-repository-url:
description: URL of the gitops repo to use. Include personal access token in the URL if the repo is private.
required: true
github-organization:
description: GitHub organisation, defaults to the owner of the GitOps repository. Only used for outputting some links.
required: false
kube-config:
description: Base64 encoded kubectl config to use.
required: true
kube-context:
description: Name of the kubectl context to use. Defaults to current context.
required: false
registry:
description: Name of the registry to use. Defaults to first auth available in ~/.docker/config.json or docker.io if no auth is available.
required: false
registry-namespace:
description: Name of the registry namespace to use.
required: false
runs:
using: composite
steps:
- uses: actions/checkout@v3
with:
repository: reclaim-the-stack/k-action
path: k-action
- run: ./k-action/action.sh
shell: bash
env:
REGISTRY: ${{inputs.registry}}
REGISTRY_NAMESPACE: ${{inputs.registry-namespace}}
GITOPS_REPOSITORY_URL: ${{inputs.gitops-repository-url}}
GITHUB_ORGANIZATION: ${{inputs.github-organization}}
KUBE_CONTEXT: ${{inputs.kube-context}}
KUBE_CONFIG: ${{inputs.kube-config}}