Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat committed Feb 1, 2024
1 parent c9b178a commit 7e8bcd1
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ jobs:
- name: Kubernetes KinD Cluster
uses: helm/[email protected]
with:
wait: 2m
wait: 30s
cluster_name: kargo
config: hack/kind.yaml
ignore_failed_clean: true

- name: Kubectl Get Pods
id: kubectl-get-pods
env:
KUBECONFIG: .kube/config
ACTIONS_STEP_DEBUG: true
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -61,17 +62,20 @@ jobs:
- name: Create Kind Cluster
id: create-kind-kubernetes
env:
KUBECONFIG: .kube/config
ACTIONS_STEP_DEBUG: true
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
source .envrc
kubectl config get-contexts
kubectl cluster-info --context kind-kargo
- id: pulumi-up
name: Deploy Pulumi IaC
env:
KUBECONFIG: .kube/config
ACTIONS_STEP_DEBUG: true
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -86,19 +90,22 @@ jobs:
- id: pulumi-destroy
name: Wait for Kind Kubernetes API to be Ready
env:
KUBECONFIG: .kube/config
ACTIONS_STEP_DEBUG: false
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
source .envrc
pulumi down --skip-preview --refresh \
|| PULUMI_K8S_DELETE_UNREACHABLE=true pulumi down --skip-preview --refresh
- name: Cleanup
id: clean-all
if: always()
run: |
make clean-all
env:
ACTIONS_STEP_DEBUG: false
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Cleanup
# id: clean-all
# if: always()
# run: |
# make clean-all
# env:
# KUBECONFIG: /tmp/kubeconfig
# ACTIONS_STEP_DEBUG: false
# PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7e8bcd1

Please sign in to comment.