Skip to content

Commit f0a23ac

Browse files
mads-hartmannroboquat
authored andcommitted
Introduce leeway run dev:preview
1 parent 1d71d58 commit f0a23ac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dev/BUILD.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ packages:
2828
image:
2929
- ${imageRepoBase}/dev-utils:${version}
3030
- ${imageRepoBase}/dev-utils:commit-${__git_commit}
31+
scripts:
32+
- name: preview
33+
description: Build Gitpod, create a preview environment, and deploy to it
34+
script: |
35+
leeway run dev/preview:create-preview
36+
leeway run dev/preview:build
37+
leeway run dev/preview:deploy-gitpod

dev/preview/BUILD.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ scripts:
3030
export TF_VAR_vm_memory="${TF_VAR_vm_memory:-12Gi}"
3131
export TF_VAR_vm_storage_class="${TF_VAR_vm_storage_class:-longhorn-gitpod-k3s-202209251218-onereplica}"
3232
./workflow/preview/deploy-harvester.sh
33+
previewctl install-context
3334
3435
- name: delete-preview
3536
description: Delete an existing preview environment

0 commit comments

Comments
 (0)