Updated the gitlab config to generate docs and update them on S3. Will remove the 'gitlab-docs' line in a later commit.

This commit is contained in:
Luke Anderson 2019-05-08 00:03:36 +10:00
parent 00f85a0324
commit 190bf682db
No known key found for this signature in database
GPG Key ID: 44408169EC61E228
2 changed files with 5 additions and 6 deletions

View File

@ -29,13 +29,12 @@ pages:
stage: doc
script:
- cargo doc --no-deps
- mv target/doc public
# - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html
artifacts:
paths:
- public
- aws s3 sync target/doc/ s3://lighthouse-docs.sigmaprime.io/
# Configure the below when we want to have a default page (and update S3 bucket index).
# - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html
only:
- master
- gitlab-docs
cache:
paths:

View File

@ -1,6 +1,6 @@
FROM rust:latest
RUN apt-get update && apt-get install -y clang libclang-dev cmake build-essential git unzip autoconf libtool
RUN apt-get update && apt-get install -y clang libclang-dev cmake build-essential git unzip autoconf libtool awscli
RUN git clone https://github.com/google/protobuf.git && \
cd protobuf && \