Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/dev/preview/BUILD.yaml
2492 views
1
packages:
2
- name: "deploy-dependencies"
3
type: "generic"
4
deps:
5
- install/installer:raw-app
6
- components:all-docker
7
- dev/version-manifest:app
8
config:
9
commands:
10
- [ "sh", "-c", "sudo mv install-installer--raw-app/installer /usr/local/bin" ]
11
- [ "sh", "-c", "cat components--all-docker/versions.yaml > /tmp/versions.yaml" ]
12
13
scripts:
14
15
- name: configure-workspace
16
description: Configures the workspace so that it has access to development resources as well as your preview environment.
17
script: ./workflow/preview/configure-workspace.sh
18
19
- name: build
20
description: Build all packages needed to deploy Gitpod to preview environments
21
script: ./workflow/preview/build.sh
22
23
- name: create-preview
24
description: Provisions a new preview environment
25
script: |
26
export GOOGLE_APPLICATION_CREDENTIALS="${GOOGLE_APPLICATION_CREDENTIALS:-$PREVIEW_ENV_DEV_SA_KEY_PATH}"
27
export TF_VAR_cert_issuer="${TF_VAR_cert_issuer:-letsencrypt-issuer-gitpod-core-dev}"
28
export TF_VAR_preview_name="${TF_VAR_preview_name:-$(previewctl get name)}"
29
./workflow/preview/deploy-preview.sh
30
31
- name: delete-preview
32
description: Delete an existing preview environment
33
script: |
34
export DESTROY=true
35
export GOOGLE_APPLICATION_CREDENTIALS="${GOOGLE_APPLICATION_CREDENTIALS:-$PREVIEW_ENV_DEV_SA_KEY_PATH}"
36
export TF_VAR_kubeconfig_path="${TF_VAR_kubeconfig_path:-$HOME/.kube/config}"
37
export TF_VAR_preview_name="${TF_VAR_preview_name:-$(previewctl get name)}"
38
./workflow/preview/deploy-preview.sh
39
40
- name: deploy-gitpod
41
description: Deploys Gitpod to an existing preview environment
42
script: ./workflow/preview/deploy-gitpod.sh
43
44
- name: deploy-monitoring-satellite
45
description: Deploys monitoring-satellite to an existing preview environment
46
script: ./workflow/preview/deploy-monitoring-satellite.sh
47
48