when running as nonroot in the container it fails to acknowledge that the mounted dir is a git-repo. if run as root it's not problem ¯\_(ツ)_/¯
docker run --rm -it -v $PWD:/data semantic-local
[10:52:35 AM] [semantic-release] › ℹ Running semantic-release version 24.1.0
[10:52:35 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[10:52:35 AM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/git"
[10:52:35 AM] [semantic-release] › ✔ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[10:52:35 AM] [semantic-release] › ✔ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[10:52:35 AM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/changelog"
[10:52:35 AM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/git"
[10:52:35 AM] [semantic-release] › ✘ ENOGITREPO Not running from a git repository.
The semantic-release command must be executed from a Git repository.
The current working directory is /data.
Please verify your CI configuration to make sure the semantic-release command is executed from the root of the cloned repository.
AggregateError:
SemanticReleaseError: Not running from a git repository.
at default (file:///npm/node_modules/semantic-release/lib/get-error.js:6:10)
at default (file:///npm/node_modules/semantic-release/lib/verify.js:15:17)
at async run (file:///npm/node_modules/semantic-release/index.js:65:3)
at async Module.default (file:///npm/node_modules/semantic-release/index.js:278:22)
at async default (file:///npm/node_modules/semantic-release/cli.js:55:5)
at default (file:///npm/node_modules/semantic-release/lib/verify.js:41:11)
at async run (file:///npm/node_modules/semantic-release/index.js:65:3)
at async Module.default (file:///npm/node_modules/semantic-release/index.js:278:22)
at async default (file:///npm/node_modules/semantic-release/cli.js:55:5) {
errors: [
SemanticReleaseError: Not running from a git repository.
at default (file:///npm/node_modules/semantic-release/lib/get-error.js:6:10)
at default (file:///npm/node_modules/semantic-release/lib/verify.js:15:17)
at async run (file:///npm/node_modules/semantic-release/index.js:65:3)
at async Module.default (file:///npm/node_modules/semantic-release/index.js:278:22)
at async default (file:///npm/node_modules/semantic-release/cli.js:55:5) {
code: 'ENOGITREPO',
details: 'The `semantic-release` command must be executed from a Git repository.\n' +
'\n' +
'The current working directory is `/data`.\n' +
'\n' +
'Please verify your CI configuration to make sure the `semantic-release` command is executed from the root of the cloned repository.',
semanticRelease: true
}
]
}%
when running as nonroot in the container it fails to acknowledge that the mounted dir is a git-repo. if run as root it's not problem
¯\_(ツ)_/¯