Created
January 23, 2022 03:08
-
-
Save linkdd/34770dbd201d7ec1e2c68b00731e0384 to your computer and use it in GitHub Desktop.
Github Workflow Step to edit the KinD generated kubeconfig for use inside a Docker container
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
# uses script from https://gist.github.com/linkdd/4bbd9fc4966e00e067305f1fb8c2588c | |
- name: setup@kubeconfig | |
run: | | |
hostip=$(sh .github/scripts/get-docker-host.sh) | |
sed "s/127.0.0.1/$hostip/g" $HOME/.kube/config > ${{ github.workspace }}/kubeconfig.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment