Skip to content

Commit

Permalink
convert bash to pulumi gha
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat committed Feb 1, 2024
1 parent d86a582 commit 857c538
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
41 changes: 27 additions & 14 deletions .github/workflows/kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
with:
fetch-depth: 1

- uses: pulumi/actions@v5
id: pulumi-install

- name: Kubernetes KinD Cluster
uses: helm/[email protected]
with:
Expand Down Expand Up @@ -73,20 +76,30 @@ jobs:
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 }}
run: |
source .envrc
pulumi login
pulumi install
pulumi stack select --create dev
pulumi config set kubernetes kind
pulumi up --refresh --skip-preview
- uses: pulumi/actions@v5
id: pulumi-up
with:
command: up
work-dir: ./
cloud-url: file://$GITHUB_WORKSPACE/.pulumi
refresh: true
secrets-provider: passphrase
stack-name: ci

# - 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 }}
# run: |
# source .envrc
# pulumi login
# pulumi install
# pulumi stack select --create dev
# pulumi config set kubernetes kind
# pulumi up --refresh --skip-preview

- id: pulumi-destroy
name: Wait for Kind Kubernetes API to be Ready
Expand Down
2 changes: 2 additions & 0 deletions Pulumi.ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config:
kargo:kubernetes: kind

0 comments on commit 857c538

Please sign in to comment.