Update README

This commit is contained in:
Shashank Barsin 2019-09-24 14:09:13 +05:30
parent 1dadfcf8a0
commit 01fb4e5ab2

View File

@ -60,7 +60,7 @@ kubectl get secret <service-account-secret-name> -n <namespace> -o json
## Using secret for Kubeconfig or Service Account
Now add the values as [a secret](https://developer.github.com/actions/managing-workflows/storing-secrets/) in the GitHub repository. In the example below the secret name is `KUBE_CONFIG` and it can be used in the workflow by using the following syntax:
```yaml
- uses: azure/k8s-actions/k8s-set-context@master
- uses: azure/k8s-set-context@v1
with:
kubeconfig: ${{ secrets.KUBE_CONFIG }}
```