Commit a20bf046 authored by Georgios Bitzes's avatar Georgios Bitzes
Browse files

Switch docs publishing to /eos image

parent 28c3d326
Pipeline #1475664 failed with stages
in 69 minutes and 37 seconds
......@@ -128,17 +128,21 @@ rpms:
docs:
stage: publish
image: gitlab-registry.cern.ch/eos/quarkdb/build-image-cc7
image: gitlab-registry.cern.ch/eos/gitlab-eos/cc7:latest
script:
- gitbook build
- chown -R stci _book
- SNAPSHOT=$(date +%s)
- TARGET="/eos/project/q/quarkdb/www/docs/${CI_COMMIT_REF_NAME}"
- STAGING_AREA="$TARGET-${SNAPSHOT}"
- sudo -u stci -H cp -r _book "$STAGING_AREA"
- sudo -u stci -H packaging/replace-directory.sh "$STAGING_AREA" "$TARGET"
- automount
- cat "$STCI_PASSWORD" | kinit stci
- eosfusebind
- npm install -g gitbook-cli
- npm install gitbook
- gitbook build
- SNAPSHOT=$(date +%s)
- TARGET="/eos/project/q/quarkdb/www/docs/${CI_COMMIT_REF_NAME}"
- STAGING_AREA="$TARGET-${SNAPSHOT}"
- cp -r _book "$STAGING_AREA"
- packaging/replace-directory.sh "$STAGING_AREA" "$TARGET"
tags:
- docker-cc7
- docker-privileged
retry: 2
only:
- branches@eos/quarkdb
......@@ -153,7 +157,6 @@ coverage:
- automount
- cat "$STCI_PASSWORD" | kinit stci
- eosfusebind
- chown -R stci build/coverage-report
- SNAPSHOT=$(date +%s)
- TARGET="/eos/project/q/quarkdb/www/coverage/${CI_COMMIT_REF_NAME}"
- STAGING_AREA="$TARGET-${SNAPSHOT}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment