Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Oct 25, 2019
1 parent 6a304cd commit 183ae37
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.idea
.git
.DS_Store
.git
11 changes: 0 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
FROM alpine:3.10.2
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"

COPY entrypoint.sh /entrypoint.sh
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To use kubectl put this step into your workflow:

### Authorization with config file
```yaml
- uses: exelban/kubectl@master
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
Expand All @@ -18,7 +18,7 @@ To use kubectl put this step into your workflow:
### Authorization with credentials
```yaml
- uses: exelban/kubectl@master
- uses: actions-hub/kubectl@master
env:
KUBE_HOST: ${{ secrets.KUBE_HOST }}
KUBE_USERNAME: ${{ secrets.KUBE_USERNAME }}
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- uses: exelban/kubectl@master
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
Expand All @@ -91,11 +91,11 @@ jobs:
steps:
- uses: actions/checkout@v1
- uses: exelban/kubectl@master
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
- uses: exelban/kubectl@master
- uses: actions-hub/kubectl@master
with:
args: get pods
```
Expand All @@ -106,12 +106,12 @@ After accepting PR the new release will be created.
To use a specific version of kubectl use:

```yaml
- uses: exelban/kubectl@1.14.3
- uses: actions-hub/kubectl@1.14.3
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: get pods
```

## Licence
[MIT License](https://github.com/exelban/kubectl/blob/master/LICENSE)
[MIT License](https://github.com/actions-hub/kubectl/blob/master/LICENSE)
20 changes: 20 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 183ae37

Please sign in to comment.