Commit 05d2e988 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix: misspell CI_COMMIT_REF_NAME

parent cb08ee10
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -53,8 +53,8 @@ When not explicitly set, `serviceAccount` and `workloadIdentityProvider` values

When not explicitly set, `envType` is automatically guessed based on [GitLab predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html):

| `$CI_REF_NAME`     | `envType` value |
| ------------------ | --------------- |
| `$CI_COMMIT_REF_NAME` | `envType` value |
| --------------------- | --------------- |
| `master` or `main`    | **production** if `$CI_JOB_STAGE` is one of `publish`, `infra-prod`, `production`, `.post`<br/>**staging** otherwise |
| `develop`             | **integration** |
| _any other branch_    | **review** |
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ app = FastAPI()


def guess_env_type() -> str:
    ref_name = os.getenv("CI_REF_NAME", "-")
    ref_name = os.getenv("CI_COMMIT_REF_NAME", "-")
    prod_ref = os.getenv("PROD_REF", "/^(master|main)$/").strip("/")
    if re.match(prod_ref, ref_name):
        # could be staging or prod