Environment Variable - CI/CD用語集の定義
environment variable とは、process の環境に保持され子 process に継承される名前付きの値で、PATH、HOME、CI のような設定をハードコードせずに渡すために使われます。
CI での扱い
変数は workflow、job、step の各レベルで env: キーを使って設定します。ほとんどの CI システムは自動的に CI=true を設定するため、ツールは pipeline 内で実行中であることを検知できます。後続のステップへ変数をエクスポートするには $GITHUB_ENV に書き込みます。
関連ガイド
PATH - CI/CD Glossary DefinitionPATH: PATH is the environment variable holding a colon-separated list of directories the shell searches, in o…
Working Directory - CI/CD Glossary DefinitionWorking Directory: The working directory (current working directory, cwd) is the folder a process treats as t…
Process - CI/CD Glossary DefinitionProcess: A process is a running instance of a program, with its own memory, file descriptors, and a unique pr…