generated from ContainerCraft/devcontainer
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
config: | ||
kargo:kubernetes: kind |