Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose-publish
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
compose
include
compose-publish
Commits
f9d3f6c9
Commit
f9d3f6c9
authored
2 years ago
by
FELŠÖCI Marek
Browse files
Options
Downloads
Patches
Plain Diff
Use time machine instead of fixed profile for Guix environments
parent
c0f6fac6
No related branches found
No related tags found
No related merge requests found
Pipeline
#779497
failed
2 years ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.compose-gitlab-ci.yml
+3
-14
3 additions, 14 deletions
.compose-gitlab-ci.yml
with
3 additions
and
14 deletions
.compose-gitlab-ci.yml
+
3
−
14
View file @
f9d3f6c9
...
...
@@ -7,17 +7,6 @@ stages:
-
build
-
deploy
# Create the report and deploy the Gitlab pages.
before_script
:
# Use a fixed GUIX profile for maximum reproducibility:
-
mkdir -p $HOME/.guix-extra/compose/
# - >
# guix pull --channels=.guix-extra/channels-compose-fixed.scm
# --profile=$HOME/.guix-extra/compose/guix --allow-downgrades
-
export GUIX_PROFILE="$HOME/.guix-extra/compose/guix"
-
. "$GUIX_PROFILE/etc/profile"
-
mkdir -p public/
-
guix describe --format=channels | tee public/channels.scm
buildrawlatex
:
# We recommend NOT to use this feature and only rely on org.
# However, it is still possible to handle raw latex files,
...
...
@@ -34,7 +23,7 @@ buildrawlatex:
# Publish the org content
-
cd rawlatex
-
guix shell --pure -m ../.guix-extra/manifest-compose.scm -- latexmk -pdf -xelatex -interaction=nonstopmode
-
guix
time-machine -C ../.guix-extra/channels-compose-fixed.scm --
shell --pure -m ../.guix-extra/manifest-compose.scm -- latexmk -pdf -xelatex -interaction=nonstopmode
-
cd ..
# Make index of public folder:
...
...
@@ -68,13 +57,13 @@ pages:
-
mkdir -p public/
# Publish the org content
-
guix shell --pure -m .guix-extra/manifest-compose.scm -- emacs --batch --no-init-file --load publish.el --funcall org-publish-all
-
guix
time-machine -C ../.guix-extra/channels-compose-fixed.scm --
shell --pure -m .guix-extra/manifest-compose.scm -- emacs --batch --no-init-file --load publish.el --funcall org-publish-all
# Make sitemap of public folder and point index.html to README.html is no index is there:
-
>
for folder in $(find public/ -type d) ;
do
guix shell --pure tree -- tree -L 1 -H '.' --dirsfirst --noreport --charset utf-8 $folder > $folder/sitemaptree.html ;
guix
time-machine -C ../.guix-extra/channels-compose-fixed.scm --
shell --pure tree -- tree -L 1 -H '.' --dirsfirst --noreport --charset utf-8 $folder > $folder/sitemaptree.html ;
sed -i 's/href=".">.</href="..">..</g' $folder/sitemaptree.html ;
cd $folder
if [ ! -e index.html -a -e README.html ] ; then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment