# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

steps:
- name: 'gcr.io/active-premise-257318/builder'
  args: ['./util/build_docs.py']
- name: 'gcr.io/cloud-builders/gsutil'
  args: ['-m', 'rsync', '-r', 'build/docs/', 'gs://active-premise-257318']

# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

steps:
- name: 'gcr.io/active-premise-257318/builder'
  args: ['./util/build_docs.py']
- name: 'gcr.io/cloud-builders/gsutil'
  args: ['-m', 'rsync', '-r', '-d','build/docs/', 'gs://active-premise-257318']

Make the doc bucket match the build output
[doc] Make the doc bucket match the build output

Add -d option to the gsutil rsync command used to deploy the
documentation website. This forces the target destination bucket to
match the contents of the build directory.

Additional documentation details are available here:

https://cloud.google.com/storage/docs/gsutil/commands/rsync

Signed-off-by: Miguel Osorio <c7c97b215f812c2e8a32efd57ad5e976a6eb9e45@google.com>
