packages:
- name: "deploy-dependencies"
type: "generic"
deps:
- install/installer:raw-app
- components:all-docker
- dev/version-manifest:app
config:
commands:
- [ "sh", "-c", "sudo mv install-installer--raw-app/installer /usr/local/bin" ]
- [ "sh", "-c", "cat components--all-docker/versions.yaml > /tmp/versions.yaml" ]
scripts:
- name: configure-workspace
description: Configures the workspace so that it has access to development resources as well as your preview environment.
script: ./workflow/preview/configure-workspace.sh
- name: build
description: Build all packages needed to deploy Gitpod to preview environments
script: ./workflow/preview/build.sh
- name: create-preview
description: Provisions a new preview environment
script: |
export GOOGLE_APPLICATION_CREDENTIALS="${GOOGLE_APPLICATION_CREDENTIALS:-$PREVIEW_ENV_DEV_SA_KEY_PATH}"
export TF_VAR_cert_issuer="${TF_VAR_cert_issuer:-letsencrypt-issuer-gitpod-core-dev}"
export TF_VAR_preview_name="${TF_VAR_preview_name:-$(previewctl get name)}"
./workflow/preview/deploy-preview.sh
- name: delete-preview
description: Delete an existing preview environment
script: |
export DESTROY=true
export GOOGLE_APPLICATION_CREDENTIALS="${GOOGLE_APPLICATION_CREDENTIALS:-$PREVIEW_ENV_DEV_SA_KEY_PATH}"
export TF_VAR_kubeconfig_path="${TF_VAR_kubeconfig_path:-$HOME/.kube/config}"
export TF_VAR_preview_name="${TF_VAR_preview_name:-$(previewctl get name)}"
./workflow/preview/deploy-preview.sh
- name: deploy-gitpod
description: Deploys Gitpod to an existing preview environment
script: ./workflow/preview/deploy-gitpod.sh
- name: deploy-monitoring-satellite
description: Deploys monitoring-satellite to an existing preview environment
script: ./workflow/preview/deploy-monitoring-satellite.sh