-
Notifications
You must be signed in to change notification settings - Fork 332
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
Gitlab: Create Static Sites #1994
Gitlab: Create Static Sites #1994
Comments
this image: ubuntu:latest
variables:
QUARTO_VERSION: "1.0.38"
pages:
script:
- apt-get update
- apt-get -y install wget ca-certificates
- wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb" -O quarto.deb
- dpkg -i quarto.deb
- quarto render . --output-dir public
artifacts:
paths:
- public |
I see Gitlab is working on docker images. We could provide one maybe with Quarto pre-installed, and build the image at each release ? Otherwise, I know that some projects already include Quarto (but also more) like the Rocker project (https://rocker-project.org/images/ with the But Quarto installation is quite fast, and on Github action we do not cache the installation. We could probably do it using cache setting for the tools, and checking the API version for release to know if we should update to not the installed version. Anyway, just wanted to share the docker image idea. |
I created https://gitlab.com/quarto-forge/docker and I will be building some Docker images to be used primarily by GitLab Pages users. Contributions are welcome! |
@rgaiacs , I came across this issue due to a similar need. Thank you for setting up the docker image! Can I make a request to rebuild/push? I was exploring the use of ERROR: The extension Embedded Shinylive applications is incompatible with this quarto version.
Extension requires: >=1.2.198
Quarto version: 1.2.79 Do you think you can schedule a CI build & Push of the images in your repo? |
@zachcp Thanks for the message. I'm looking to figure out why GitLab isn't updating the image in their registry. You will find a copy of the images in https://hub.docker.com/u/quarto2forge and they have been updated. |
thanks @rgaiacs but Dockerhub does not seem to be updating: docker pull quarto2forge/quarto
docker run -it --entrypoint /bin/bash quarto2forge/quarto
# quarto -v
# 1.2.79
# expect 1.3.XX |
@zachcp I fixed the issue due some cache.
In January, I will have time to re-organise things and include a image with stable release of Quarto. |
Gitlab has the ability to create static sites from a template (https://gitlab.com/pages). Quarto isn’t listed. These are the steps of setting that up: https://gitlab.com/pages/pages.gitlab.io/-/blob/master/CONTRIBUTING.md
The text was updated successfully, but these errors were encountered: