mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Use of gsutil is discouraged / deprecated, see https://cloud.google.com/storage/docs/gsutil
35 lines
1.6 KiB
YAML
35 lines
1.6 KiB
YAML
# This will compile javadoc for the FOSS version of the code base and replace
|
|
# the content at gs://${PROJECT_ID}-javadoc with the it. The compiled javadoc
|
|
# can then be accesssed at https://storage.googleapis.com/${PROJECT_ID}-javadoc
|
|
#
|
|
# It will also upload all ER diagrams under db/src/main/resource/sql/er_diagram
|
|
# to gs://${PROJECT_ID}-er-diagram. The ER diagrams can then be accesssed
|
|
# at https://storage.googleapis.com/${PROJECT_ID}-er-diagram
|
|
#
|
|
# To trigger a build automatically, follow the instructions below and add a trigger:
|
|
# https://cloud.google.com/cloud-build/docs/running-builds/automate-builds
|
|
steps:
|
|
# Compile javadoc
|
|
- name: 'gcr.io/${PROJECT_ID}/builder:live'
|
|
entrypoint: /bin/bash
|
|
args: ['./gradlew', ':javadoc']
|
|
# Upload the files to GCS
|
|
# We don't use GCB's built-in artifacts uploader because we want to delete
|
|
# the existing files in the bucket first, and we want to parallelize the
|
|
# uploading process.
|
|
- name: 'gcr.io/${PROJECT_ID}/builder:live'
|
|
entrypoint: /bin/bash
|
|
args: ['gcloud', 'storage', 'rsync', '--delete-unmatched-destination-objects', '--recursive', 'build/docs/javadoc',
|
|
'gs://${PROJECT_ID}-javadoc']
|
|
# Upload the files to GCS
|
|
# We don't use GCB's built-in artifacts uploader because we want to delete
|
|
# the existing files in the bucket first, and we want to parallelize the
|
|
# uploading process.
|
|
- name: 'gcr.io/${PROJECT_ID}/builder:live'
|
|
entrypoint: /bin/bash
|
|
args: ['gcloud', 'storage', 'rsync', '--delete-unmatched-destination-objects', '--recursive',
|
|
'db/src/main/resources/sql/er_diagram', 'gs://${PROJECT_ID}-er-diagram']
|
|
timeout: 3600s
|
|
options:
|
|
machineType: 'E2_HIGHCPU_32'
|