Configuring project
Environments
Outblocks supports multiple environments for your deployments. Default deployment is dev, and uses dev.values.yaml as a source of variables for your build. You can create as many environments as you want.
Typically you want to have production and staging environments. To do that create two files:
- staging.values.yaml
base_url: staging.outblocks.io
env: staging
gcp_project: outblocks
gcp_region: europe-west3
- production.values.yaml
base_url: outblocks.io
env: production
gcp_project: outblocks-production
gcp_region: europe-west3
Then you can point out which environment should be used during the deployment:
# deploy staging
ok deploy --env=staging
# deploy production
ok deploy --env=production
# "dev" environment will be used it --env flag not set
ok deploy
Use --env flag for any other ok command to set environment.