Unary · Environment Automations
Creates a new automation service for an environment.
Use this method to:
- Set up long-running services
- Configure service triggers
- Define service dependencies
- Specify runtime environments
Examples
-
Create basic service:
Creates a simple service with start command.
-
Create Docker-based service:
Creates a service running in a specific container.
Endpoint
https://app.ona.com with that domain.
Request example
Request
gitpod.v1.CreateServiceRequest
Response
gitpod.v1.CreateServiceResponse
Related types
AutomationTrigger
AutomationTrigger
An AutomationTrigger represents a trigger for an automation action.
The
manual field shows a start button in the UI for manually triggering the automation.
The post_machine_start field indicates that the automation should be triggered after the machine has started, before the devcontainer is ready.
This is used for machine-level services like security agents that need to start early.
The post_environment_start field indicates that the automation should be triggered after the environment has started (devcontainer ready).
The post_devcontainer_start field indicates that the automation should be triggered after the dev container has started.
The prebuild field starts the automation during a prebuild of an environment. This phase does not have user secrets available.
The before_snapshot field triggers the automation after all prebuild tasks complete but before the snapshot is taken.
This is used for tasks that need to run last during prebuilds, such as IDE warmup.
Note: The before_snapshot trigger can only be used with tasks, not services.gitpod.v1.AutomationTriggerEnvironmentVariableItem
EnvironmentVariableItem
EnvironmentVariableItem represents an environment variable that can be set
either from a literal value or from a secret reference.
gitpod.v1.EnvironmentVariableItemRunsOn
RunsOn
gitpod.v1.RunsOnService
Service
gitpod.v1.ServiceServiceMetadata
ServiceMetadata
gitpod.v1.ServiceMetadataServiceSpec
ServiceSpec
gitpod.v1.ServiceSpecCommands
Commands
gitpod.v1.ServiceSpec.CommandsServiceStatus
ServiceStatus
gitpod.v1.ServiceStatusSubject
Subject
gitpod.v1.SubjectPrincipal
Principal
ServicePhase
ServicePhase
ServiceRole
ServiceRole