diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ba5b172..480cd47 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,38 @@ image: gitlab/dind +stages: + - docs + - publish + variables: VERSION: ${CI_COMMIT_REF_NAME} + CI_JOB: ${CI_JOB_ID} before_script: - apt-get update && apt-get install -y --no-install-recommends make linux-image-generic -job: +sd-image: + stage: publish script: - make sd-image artifacts: paths: - hypriotos-rpi-${VERSION}.img.zip - hypriotos-rpi-${VERSION}.img.zip.sha256 + +pages: + stage: docs + image: node:6 + before_script: + - npm install gitbook-cli -g # install gitbook + - gitbook fetch latest # fetch latest stable version + - gitbook install docs # add any requested plugins in book.json + script: + - gitbook build docs builder/files/var/www/docs # build to public path + after_script: + - cp -ar builder/files/var/www/docs public + artifacts: + paths: + - public +# only: +# - master diff --git a/builder/build.sh b/builder/build.sh index eaf17f2..6d56ce8 100755 --- a/builder/build.sh +++ b/builder/build.sh @@ -59,6 +59,7 @@ mount -t sysfs none ${BUILD_PATH}/sys # modify/add image files directly cp -R /builder/files/* ${BUILD_PATH}/ +cp -R /builder/scripts/* ${BUILD_PATH}/usr/local/bin/ # make our build directory the current root # and install the Rasberry Pi firmware, kernel packages, diff --git a/builder/files/var/www/index.html b/builder/files/var/www/index.html index 88af205..48ec526 100644 --- a/builder/files/var/www/index.html +++ b/builder/files/var/www/index.html @@ -16,5 +16,8 @@
You've correctly connected to your Pi!
++ Documentation +