Comments (1)
I solved this by echoing the content of my ${{ secret.KUBECONFIG }}
into the standard path of the Kubernetes config file, $HOME/.kube/config
like this:
name: Deploy
on:
deployment:
env:
KUBECONFIG: .kube/config
KUBECONFIG_FILE: ${{ secrets.KUBECONFIG }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p .kube
echo "${{ env.KUBECONFIG_FILE }}" > $KUBECONFIG
- uses: stefanprodan/kube-tools@v1
with:
helmv3: 3.2.1
command: |
kubectl create namespace --ignore ${{ github.event.deployment.payload.namespace }} || true
from kube-tools.
Related Issues (20)
- Supported Kubernetes Version HOT 1
- Not all parameters passed to action HOT 1
- New release request. HOT 1
- Add kubesec?
- Add KinD?
- Add go-jsonnet?
- Request: Support arm64; Add git-crypt; Add Kubeseal HOT 1
- Add krew?
- Question: How to get the output for usage in another step?
- New Release/Tag should be created to match current tools HOT 1
- [Question] Running helm in monorepo
- [Issue] Example has kubeaudit, but there are no kubeaudit in action HOT 2
- Not working in self-hosted runners HOT 1
- kubeval not being an argument warning HOT 1
- Any plans to release after #38? HOT 1
- kube-tools@v1 pulls v1.5.0 HOT 1
- Forward v1 branch to pick up 1.6.0 release HOT 2
- Install script doesn't preserves package versions for yq and jq
- Feature: Add Kyverno CLI?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-tools.