forked from actions-hub/kubectl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
.idea | ||
.git | ||
.DS_Store | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
FROM alpine:3.10.2 | ||
MAINTAINER Serhiy Mitrovtsiy <[email protected]> | ||
|
||
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 <[email protected]>" | ||
|
||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 }} | ||
|
@@ -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: | ||
|
@@ -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 | ||
``` | ||
|
@@ -106,12 +106,12 @@ After accepting PR the new release will be created. | |
To use a specific version of kubectl use: | ||
|
||
```yaml | ||
- uses: exelban/[email protected] | ||
- uses: actions-hub/[email protected] | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>' | ||
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' |