fail faster #18
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
# This is a basic workflow to help you get started with Actions | |
name: test sx-cnp-oss k3d stack on kind cluster | |
# Controls when the workflow will run | |
on: | |
# at he moment this action only works when pushed to main because all references in the scripts and argocd apps use the main branch | |
push: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
create-cluster: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@v1 | |
with: | |
cluster_name: sx-cnp-oss-cluster | |
- name: install mkcert | |
shell: bash | |
run: | | |
curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" | |
chmod +x mkcert-v*-linux-amd64 | |
sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert | |
- name: install nginx | |
shell: bash | |
run: | | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml | |
- name: install sx-cnp-oss stack | |
env: | |
INSTALL_K3D_CLUSTER: "false" | |
INSTALL_MKCERTS: "false" | |
shell: bash | |
run: | | |
curl -L https://raw.githubusercontent.com/suxess-it/sx-cnp-oss/main/install-k3d-cluster.sh | bash | |
- name: mustgather data for troubleshooting | |
shell: bash | |
run: | | |
kubectl get application -n argocd -o yaml |