Created
June 19, 2020 22:00
-
-
Save odanoburu/acc7922a8be34e915290acbeb3afcb47 to your computer and use it in GitHub Desktop.
Pollen CD with gitlab pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name of container image we use (must be on docker hub) | |
image: odanoburu/racket-pollen:7.7 | |
# everything we need (Racket and Pollen) is already on the container, | |
# so no need to install anything (but if you want something else | |
# installed this is the place to do it) | |
before_script: | |
- ls # for the logs | |
# deploy public/ directory to Gitlab Pages | |
pages: | |
stage: deploy | |
script: | |
- raco pollen render | |
# quote string to avoid problems | |
## add whatever files you you want to deploy to this command | |
- "mkdir public && mv -t public *.html *.css favicon.ico" | |
artifacts: | |
paths: | |
- public # only publish public directory | |
only: | |
- master # only deploy master branch | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/racket/racket:7.7 | |
RUN raco pkg install --batch --no-docs --auto pollen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment