diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2017-11-03 15:30:52 +0100 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2017-11-06 20:19:38 +0100 |
commit | 49a3e4bbcaaf801c3870f0918a17d460beafa0df (patch) | |
tree | 86ea292d7209672cdc2e94da32cd5c98e3a1a1ae /site/BUILD | |
parent | 2cd2e78c60c4b6d5dfbc6479d26cdaf7b68abb55 (diff) |
Add files to build site directly on Google Cloud Container Builder
Using `bazel build //site` will now build the site (needs the proper
version of Jekyll in the path :/), `bazel run //site` will serve it
using Jekyll.
This change also contains the yaml file to build and deploy the
site on Google Cloud Container Builder. This will allow to remove
that special hook from our CI.
Note: this is copied from https://github.com/bazelbuild/bazel-blog
Change-Id: I6bb04fea0fa80623bd5d25a5f191ae49e8074e92
PiperOrigin-RevId: 174459256
Diffstat (limited to 'site/BUILD')
-rw-r--r-- | site/BUILD | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/site/BUILD b/site/BUILD index fde005a84f..84cf64530f 100644 --- a/site/BUILD +++ b/site/BUILD @@ -1,4 +1,5 @@ load("//tools/build_defs/pkg:pkg.bzl", "pkg_tar") +load("//scripts/docs:jekyll.bzl", "jekyll_build") exports_files( [ @@ -145,3 +146,9 @@ genrule( "jekyll-tree.sh", ], ) + +jekyll_build( + name = "site", + srcs = [":jekyll-tree"], + bucket = "docs.bazel.build", +) |