Skip to content
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

Failed to deploy to GitLab #990

Closed
newptcai opened this issue Dec 13, 2022 · 4 comments
Closed

Failed to deploy to GitLab #990

newptcai opened this issue Dec 13, 2022 · 4 comments

Comments

@newptcai
Copy link

The pipeline failed when the follow is executed

julia --project=@. -e 'import Pkg; Pkg.instantiate(); using NodeJS; run(`$(npm_cmd()) install highlight.js`); using Franklin; optimize()'

The error is

ERROR: MethodError: no method matching joinpath(::Nothing)

See details here.

@tlienart
Copy link
Owner

tlienart commented Dec 13, 2022

  1. did this use to work before and stopped working all of a sudden? what did you do between the time it did work and now? the error is not very clear but I don't think it's an issue with Franklin...
  2. if you run the command above locally, does it work fine? are the generated files in __site as you expect them?

Could you try not using instantiate, removing the Manifest.toml and using this instead:

import Pkg; Pkg.add(Pkg.PackageSpec(;name="Franklin", version="0.10.58"));

so

julia --project=@. -e 'import Pkg; Pkg.add(Pkg.PackageSpec(;name="Franklin", version="0.10.58")); using NodeJS; run(`$(npm_cmd()) install highlight.js`); using Franklin; optimize()'

@newptcai
Copy link
Author

I have not updated anything package in Franklin.
It works well locally without any problem.
So I guess it's problem on GitLab side, or something wrong with the Docker image.

Besides what you suggested, is it possible to just manually push the __site to GitLab?

@tlienart
Copy link
Owner

could you try the Pkg.add without Manifest so we can rule this out?

Besides what you suggested, is it possible to just manually push the __site to GitLab?

yes, what you can do is:

  1. run the command locally
  2. push to gitlab including the __site folder
  3. have a pipeline that does mv __site public so basically this one https://gitlab.com/newptcai/newptcai.gitlab.io/-/blob/master/.gitlab-ci.yml but without https://gitlab.com/newptcai/newptcai.gitlab.io/-/blob/master/.gitlab-ci.yml#L10-13

@newptcai
Copy link
Author

Thanks a lot. Using Pkg.add resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants