speareducation/Spear Build Variables
Outputs some variables useful for building environments.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
no inputs
Outputs
| name | description |
|---|---|
| appEnv | The APP Environment, taken from the branch or tag. |
| appEnvAbbr | The Abbreviated APP Environment (stg, prd, dev, etc.) |
| release | The release name, taken from the branch or tag. |
| projectKey | The repository basename (e.g. "accounts") |
| phpVersion | The PHP version from .pvmrc if present |
| nodeVersion | The requested Node version from .nvmrc if present |
| packageName | The package name from package.json if present |
| packageScope | The package scope (org) from package.json if present |
| packagePackage | The package name (without scope) from package.json if present |
| packageVersion | The package version from package.json if present (e.g. "1.2.3-pre.0") |
| packageMajorVersion | The package major version from package.json if present (e.g. "1") |
| packageMinorVersion | The package major and minor version from package.json if present (e.g. "1.2") |
| packagePatchVersion | The package major, minor, and patch version from package.json if present (e.g. "1.2.3") |
| packagePreVersion | The package pre-release version from package.json if present (e.g. "pre.0") |
| packageIsFullRelease | Whether the package version is a full release (i.e. not a pre-release) |
| dockerRegistry | The ECR or other registry containing the docker image |
| dockerBaseImage | The full base image URI for the docker container |