forked from GoogleCloudPlatform/cloud-data-quality
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild-release-ubuntu18.yaml
69 lines (55 loc) · 2.82 KB
/
cloudbuild-release-ubuntu18.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
steps:
- name: 'ubuntu:18.04'
env:
- 'GOOGLE_CLOUD_PROJECT=${_GOOGLE_CLOUD_PROJECT}'
- 'CLOUDDQ_BIGQUERY_DATASET=${_CLOUDDQ_BIGQUERY_DATASET}'
- 'CLOUDDQ_BIGQUERY_REGION=${_CLOUDDQ_BIGQUERY_REGION}'
- 'GCS_BUCKET_NAME=${_GCS_BUCKET_NAME}'
- 'GCS_BAZEL_CACHE=${_GCS_BAZEL_CACHE}'
- 'DATAPLEX_ENDPOINT=${_DATAPLEX_ENDPOINT}'
- 'DATAPLEX_LAKE_NAME=${_DATAPLEX_LAKE_NAME}'
- 'DATAPLEX_REGION_ID=${_DATAPLEX_REGION_ID}'
- 'DATAPLEX_ZONE_ID=${_DATAPLEX_ZONE_ID}'
- 'DATAPLEX_BIGQUERY_DATASET_ID=${_DATAPLEX_BIGQUERY_DATASET_ID}'
- 'DATAPLEX_BUCKET_NAME=${_DATAPLEX_BUCKET_NAME}'
- 'DATAPLEX_TARGET_BQ_DATASET=${_DATAPLEX_TARGET_BQ_DATASET}'
- 'DATAPLEX_TARGET_BQ_TABLE=${_DATAPLEX_TARGET_BQ_TABLE}'
- 'DATAPLEX_TASK_SA=${_DATAPLEX_TASK_SA}'
- 'TAG_NAME=$TAG_NAME'
- 'GCS_RELEASE_BUCKET=${_GCS_RELEASE_BUCKET}'
args:
- '-c'
- >
set -x
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -yq
tzdata sudo lsb-release apt-utils curl software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
DEBIAN_FRONTEND=noninteractive sudo apt-get update && sudo apt-get install gcc-10 -yq
source scripts/cloud_build_test_ubuntu.sh "3.8.6"
make test test_dataplex_dq_configs_cache
make test test_dataplex_metadata
source scripts/install_gcloud.sh
gsutil ls gs://$_GCS_RELEASE_BUCKET
gsutil cp clouddq_patched.zip
gs://${_GCS_RELEASE_BUCKET}/build-artifacts/ubuntu18.04/python3.8/main/`date
-I'minutes'`_${TAG_NAME}_${SHORT_SHA}/clouddq-executable.zip
gsutil cp clouddq_patched.zip.hashsum
gs://${_GCS_RELEASE_BUCKET}/build-artifacts/ubuntu18.04/python3.8/main/`date
-I'minutes'`_${TAG_NAME}_${SHORT_SHA}/clouddq-executable.zip.hashsum
gsutil cp clouddq/integration/clouddq_pyspark_driver.py
gs://${_GCS_RELEASE_BUCKET}/build-artifacts/ubuntu18.04/python3.8/main/`date
-I'minutes'`_${TAG_NAME}_${SHORT_SHA}/clouddq_pyspark_driver.py
gsutil cp clouddq_patched.zip
gs://${_GCS_BUCKET_NAME}/build-artifacts/ubuntu18.04/python3.8/main/`date
-I'minutes'`_${TAG_NAME}_${SHORT_SHA}/clouddq-executable.zip
gsutil cp clouddq_patched.zip.hashsum
gs://${_GCS_BUCKET_NAME}/build-artifacts/ubuntu18.04/python3.8/main/`date
-I'minutes'`_${TAG_NAME}_${SHORT_SHA}/clouddq-executable.zip.hashsum
gsutil cp clouddq/integration/clouddq_pyspark_driver.py
gs://${_GCS_BUCKET_NAME}/build-artifacts/ubuntu18.04/python3.8/main/`date
-I'minutes'`_${TAG_NAME}_${SHORT_SHA}/clouddq_pyspark_driver.py
entrypoint: /bin/bash
timeout: 3600s
logsBucket: 'gs://dataplex-clouddq-github-cloud-build'
options:
machineType: E2_HIGHCPU_8