Environments


Environments

Environments are deployment targets

CI variables can be scoped to environments

Environments are auto-created by the first job using them

Our environments

Your demo environment has hidden services

WebDAV endpoints emulate deployment targets


Hands-On

See chapter Environments


Pro tip

Branches can be used to represent target environments:


Pro tip: Disposable environments

Additonal use of environments: disposable review apps

Environments can have a stop action for disposal

Environments can have an expiration time

vscode:
  when: manual
  environment:
    name: quick-help
    url: https://quick-help.vscode.inmylab.de
    on_stop: vscode-cleanup
    auto_stop_in: 1h
  script: echo DEPLOY

vscode-cleanup:
  needs:
  - vscode
  environment:
    name: quick-help
    url: https://quick-help.vscode.inmylab.de
    action: stop
  when: manual
  script: echo DESTROY