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
name: Deploy whoami chart | |
on: | |
push: | |
env: | |
KUBE: ${{ secrets.KUBE }} | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- run: curl -Lo kubectl "https://dl.k8s.io/release/v1.31.1/bin/linux/amd64/kubectl" | |
- run: chmod +x kubectl | |
- run: mkdir -p ~/.local/bin | |
- run: mv ./kubectl ~/.local/bin/kubectl | |
- run: curl -Lo k8x "https://github.com/kubernetix/k8x/releases/download/v0.4.1-alpha/k8x-linux-x86_64" | |
- run: chmod +x k8x | |
- run: mv ./k8x ~/.local/bin/k8x | |
- run: k8x version | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- run: cd whoami | |
- run: mkdir ~/.kube | |
- run: echo "$KUBE" > ~/.kube/config | |
- run: K8X_WHOAMI_NAMESPACE=cicd K8X_WHOAMI_REPLICAS=1 K8X_WHOAMI_DOMAIN=ga-whoami.pfusch.dev k8x render |