feat: added the ability to use git operations in the docker image (#1413)

This commit is contained in:
Ihor Karpiuk
2024-01-29 13:08:40 +02:00
committed by GitHub
parent cf2ac84426
commit baddec02e0
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@redocly/cli": patch
---
Added git to the docker image, so the push command can use git metadata.

View File

@@ -17,6 +17,7 @@ RUN npm run prepare
# Install redocly-cli globally, similar to npm install --global @redocly/cli # Install redocly-cli globally, similar to npm install --global @redocly/cli
# but the local package is used here # but the local package is used here
RUN apk update && apk add jq && \ RUN apk update && apk add jq && \
apk add git && \
npm run pack:prepare && \ npm run pack:prepare && \
npm install --global redocly-cli.tgz npm install --global redocly-cli.tgz