v1.1.0
This commit is contained in:
parent
6a304cd134
commit
183ae371e8
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,2 @@
|
|||||||
.idea
|
.idea
|
||||||
.git
|
.git
|
||||||
.DS_Store
|
|
||||||
11
Dockerfile
11
Dockerfile
@ -1,17 +1,6 @@
|
|||||||
FROM alpine:3.10.2
|
FROM alpine:3.10.2
|
||||||
MAINTAINER Serhiy Mitrovtsiy <mitrovtsiy@ukr.net>
|
MAINTAINER Serhiy Mitrovtsiy <mitrovtsiy@ukr.net>
|
||||||
|
|
||||||
LABEL name="kubectl"
|
|
||||||
LABEL version="1.0.0"
|
|
||||||
LABEL repository="https://github.com/exelban/gcloud"
|
|
||||||
LABEL homepage="https://github.com/exelban/gcloud"
|
|
||||||
LABEL maintainer="Serhiy Mytrovtsiy <mitrovtsiy@ukr.net>"
|
|
||||||
|
|
||||||
LABEL com.github.actions.name="Kuberentes (k8s) cli - kubectl"
|
|
||||||
LABEL com.github.actions.description="GitHub Action for interacting with kubectl (k8s)"
|
|
||||||
LABEL com.github.actions.icon="terminal"
|
|
||||||
LABEL com.github.actions.color="blue"
|
|
||||||
|
|
||||||
ARG KUBE_VERSION="1.15.4"
|
ARG KUBE_VERSION="1.15.4"
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
14
README.md
14
README.md
@ -9,7 +9,7 @@ To use kubectl put this step into your workflow:
|
|||||||
|
|
||||||
### Authorization with config file
|
### Authorization with config file
|
||||||
```yaml
|
```yaml
|
||||||
- uses: exelban/kubectl@master
|
- uses: actions-hub/kubectl@master
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
with:
|
with:
|
||||||
@ -18,7 +18,7 @@ To use kubectl put this step into your workflow:
|
|||||||
|
|
||||||
### Authorization with credentials
|
### Authorization with credentials
|
||||||
```yaml
|
```yaml
|
||||||
- uses: exelban/kubectl@master
|
- uses: actions-hub/kubectl@master
|
||||||
env:
|
env:
|
||||||
KUBE_HOST: ${{ secrets.KUBE_HOST }}
|
KUBE_HOST: ${{ secrets.KUBE_HOST }}
|
||||||
KUBE_USERNAME: ${{ secrets.KUBE_USERNAME }}
|
KUBE_USERNAME: ${{ secrets.KUBE_USERNAME }}
|
||||||
@ -73,7 +73,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: exelban/kubectl@master
|
- uses: actions-hub/kubectl@master
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
with:
|
with:
|
||||||
@ -91,11 +91,11 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: exelban/kubectl@master
|
- uses: actions-hub/kubectl@master
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
|
||||||
- uses: exelban/kubectl@master
|
- uses: actions-hub/kubectl@master
|
||||||
with:
|
with:
|
||||||
args: get pods
|
args: get pods
|
||||||
```
|
```
|
||||||
@ -106,7 +106,7 @@ After accepting PR the new release will be created.
|
|||||||
To use a specific version of kubectl use:
|
To use a specific version of kubectl use:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: exelban/kubectl@1.14.3
|
- uses: actions-hub/kubectl@1.14.3
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
with:
|
with:
|
||||||
@ -114,4 +114,4 @@ To use a specific version of kubectl use:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Licence
|
## Licence
|
||||||
[MIT License](https://github.com/exelban/kubectl/blob/master/LICENSE)
|
[MIT License](https://github.com/actions-hub/kubectl/blob/master/LICENSE)
|
||||||
20
action.yml
Normal file
20
action.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: 'Kuberentes (k8s) cli - kubectl'
|
||||||
|
description: 'GitHub Action for interacting with kubectl (k8s)'
|
||||||
|
author: 'Serhiy Mytrovtsiy <mitrovtsiy@ukr.net>'
|
||||||
|
branding:
|
||||||
|
icon: 'terminal'
|
||||||
|
color: 'blue'
|
||||||
|
inputs:
|
||||||
|
KUBE_CONFIG:
|
||||||
|
description: 'Kubernetes configuration'
|
||||||
|
KUBE_HOST:
|
||||||
|
description: 'Kubernetes cluster host (IP only, without protocol)'
|
||||||
|
KUBE_USERNAME:
|
||||||
|
description: 'Kubernetes cluster username'
|
||||||
|
KUBE_PASSWORD:
|
||||||
|
description: 'Kubernetes cluster password'
|
||||||
|
KUBE_CERTIFICATE:
|
||||||
|
description: 'Cluster CA certificate'
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'Dockerfile'
|
||||||
Loading…
Reference in New Issue
Block a user