From 190bf682db831b0f64bcf8996e834faa996b9cc7 Mon Sep 17 00:00:00 2001 From: Luke Anderson Date: Wed, 8 May 2019 00:03:36 +1000 Subject: [PATCH] Updated the gitlab config to generate docs and update them on S3. Will remove the 'gitlab-docs' line in a later commit. --- .gitlab-ci.yml | 9 ++++----- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db593a5927..68cef35708 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,13 +29,12 @@ pages: stage: doc script: - cargo doc --no-deps - - mv target/doc public - # - echo '' > 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 '' > public/index.html only: - master + - gitlab-docs cache: paths: diff --git a/Dockerfile b/Dockerfile index e693c91a39..57f677b785 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \