daml/ci/cron/BUILD.bazel
Gary Verhaegen 40fd4b3626
docs cron: do not rebuild old versions (#3944)
This commit makes two conceptually independent changes:

1. It adds a checksum file to each version folder. This allows the
script to detect when a version has not been correctly uploaded.
2. It changes the script to first download all the docs website, and
then reuse existing version folders where appropriate (i.e. when their
folder matches its checksum).

The hope is that this will reduce the time it takes to deploy a new
version, as only the current version should be rebuilt (in addition to
previous, failed versions).

The first time this cron runs (upon next release as per the current
setup), however, it will still rebuild all existing versions as they do
not currently have a checksum.

CHANGELOG_BEGIN
CHANGELOG_END
2020-01-09 12:17:35 +01:00

29 lines
636 B
Python

# Copyright (c) 2020 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load("//bazel_tools:haskell.bzl", "da_haskell_binary")
da_haskell_binary(
name = "cron",
srcs = glob(["src/**/*.hs"]),
hackage_deps = [
"aeson",
"base",
"containers",
"directory",
"extra",
"filepath",
"http-client",
"http-client-tls",
"http-types",
"process",
"split",
"text",
"unordered-containers",
"utf8-string",
],
src_strip_prefix = "src",
visibility = ["//visibility:public"],
deps = [],
)