- Clone this repo
- Initialize as a new git repo --
rm -rf .git && git init && git add . && git commit -m 'first commit'
kubectl config view --minify --flatten > kubeconfigdata
docker run --rm -it -v $(pwd):/files codeship/env-var-helper cp kubeconfigdata:/root/.kube/config k8s-env
rm kubeconfigdata
docker run --rm -it -v $(pwd):/files codeship/env-var-helper ls k8s-env
docker run --rm -it -v $(pwd):/files codeship/env-var-helper cat /root/.kube/config k8s-env
docker run --rm -it -v $(pwd):/files codeship/env-var-helper rm /root/.kube/config k8s-env
docker run --rm -it -v $(pwd):/files codeship/env-var-helper cp kubeconfigdata:/root/.kube/config k8s-env
- Install our jet cli tool on your local machine
- Setup your repository on your SCM of choice
- Grab the git url of the repository and create a Codeship Pro project
- From your Codeship 'Project Settings' > 'General' page, scroll down to AES key section and click 'Download Key'
- Move downloaded key to your project directory and rename to
codeship.aes - Add
codeship.aesto your.gitignorefile (!) - Add any additional environment variables to the
codeship.envfile - Run
jet encrypt k8s-env k8s-env.encrypted - The
k8s-env.encryptedwill be safe to check into your git repository - Remove the plaintext file from your project -->
rm k8s-env
- Run
jet steps - Steps should pass, demonstrating that kubectl configurations are now accessible to the kubectl container