watson / ci-info

Get details about the current Continuous Integration environment
MIT License
321 stars 50 forks source link

Add LayerCI #63

Closed emanuelb closed 3 years ago

emanuelb commented 3 years ago

From: https://layerci.com/docs/layerfile-reference/intro#build-env https://github.com/layer-devops/docs/blob/4e0b0070b15bda6b3001dff0cc87f122009d51e0/layerfile-reference/build-env.md#build-env

Looks like the below is related env vars:

CI=true, IS_CI_MACHINE=true, CI_MACHINE=true, IN_CI_MACHINE=true, IN_CI=true

These CI variables are always true in LayerCI.

LAYERCI=true

LAYERCI is always true in LayerCI test runs.

sibiraj-s commented 3 years ago

LAYERCI is always true in LayerCI test runs.

Can you clarify this if possible? is test run a different kind of run?

emanuelb commented 3 years ago

Can you clarify this if possible? is test run a different kind of run?

I can't, don't have account/used it, and don't know the answer to this question, just saw this useful library used elsewhere (CI detection needed to avoid known bugs) and decided to contribute by looking for missing support of CIs (will open more issues shortly)

sibiraj-s commented 3 years ago

It would be great if you can open issue for CI with clear documentation or a familiar CI/CD. Issues like this will be difficult to fix.

emanuelb commented 3 years ago

well, someone else who know better may see the issues and help :) do my best to find related info and post it in the issue. regarding this issue & LayerCI, maybe open issue in their docs repo https://github.com/layer-devops/docs/ to ask about the LAYERCI env? and say that such env is always useful for detection of specific CI...

sibiraj-s commented 3 years ago

maybe open issue in their docs repo https://github.com/layer-devops/docs/ to ask about the LAYERCI env? and say that such env is always useful for detection of specific CI...

Yeah you can do that.

emanuelb commented 3 years ago

Yeah you can do that.

Done, opened issue: https://github.com/layer-devops/docs/issues/29