-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it doesn't works in GitlabCI (no errors) #26
Labels
bug
Something isn't working
Comments
thomvaill
added a commit
that referenced
this issue
Apr 30, 2021
especially for `log4brains build` (see #26)
thomvaill
added a commit
that referenced
this issue
Apr 30, 2021
especially for `log4brains build` (see #26)
Hi @jalberto Sorry for the late fix! You just have to add image: node:14-alpine3.12
pages:
stage: deploy
variables:
GIT_DEPTH: 0 # required by Log4brains to work correctly (needs the whole Git history)
script:
- mkdir -p public
- npm install -g --unsafe-perm log4brains
- log4brains build --basePath /$CI_PROJECT_NAME/log4brains --out public/log4brains
artifacts:
paths:
- public
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" I also improved the error logging: all the Next.js errors were trapped for the Thank you! |
Thanks!
…On Fri, 30 Apr 2021 at 16:11, Thomas Vaillant ***@***.***> wrote:
Hi @jalberto <https://github.com/jalberto>
Sorry for the late fix!
You just have to add --unsafe-perm to the npm install command on GitLab,
because it is executed as root.
I updated the README accordingly. The example configuration is now:
image: node:14-alpine3.12pages:
stage: deploy
variables:
GIT_DEPTH: 0 # required by Log4brains to work correctly (needs the whole Git history)
script:
- mkdir -p public
- npm install -g --unsafe-perm log4brains
- log4brains build --basePath /$CI_PROJECT_NAME/log4brains --out public/log4brains
artifacts:
paths:
- public
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
I also improved the error logging: all the Next.js errors were trapped for
the log4brains build command (see #34
<#34>)
Thank you!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAYMV2SIE7BNJZJSXYYDVDTLK3AHANCNFSM4XYIJMVA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Description
build
doesn't work in CISteps to Reproduce
Expected Behavior
to build correctly or at least display errors
The text was updated successfully, but these errors were encountered: