Save Environment

Saves environment variables for a repository.

Request Body

1{
2  "repository": "my-project/my-app",
3  "env": [
4    {"key": "LOG_LEVEL", "desired_value": "info"},
5    {"key": "DATABASE_URL", "desired_value": "postgres://user:pass@host:5432/db"}
6  ]
7}

Example

1curl -X PUT "https://api.hola.cloud/api/console/env" \
2  -H "Content-Type: application/json" \
3  -d '{
4    "repository": "my-project/my-app",
5    "env": [
6      {"key": "LOG_LEVEL", "desired_value": "info"},
7      {"key": "DATABASE_URL", "desired_value": "postgres://user:pass@host:5432/db"}
8    ]
9  }'

Comments

Leave a comment