Environments are deployment targets
CI variables can be scoped to environments
Environments are auto-created by the first job using them
Your demo environment has hidden services
WebDAV endpoints emulate deployment targets
See chapter Environments
Branches can be used to represent target environments:
dev
for development branchlive
for production codeAdditonal 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