forked from debezium/debezium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild-snapshot.yaml
45 lines (41 loc) · 995 Bytes
/
cloudbuild-snapshot.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
steps:
- name: google/cloud-sdk
entrypoint: "/bin/bash"
args:
- "-c"
- |
set -x
set -e
set -o pipefail
date
if gsutil stat gs://debezium-maven-repo/$REPO_NAME.tar
then gsutil cp gs://debezium-maven-repo/$REPO_NAME.tar - | tar -xf -
fi
date
- name: "eu.gcr.io/confluent-kafka-development/java11-maven3-6-gcp:latest"
entrypoint: "/bin/bash"
args:
- "-c"
- |
set -x
set -e
set -o pipefail
date
echo copy config into HOME
cp -ar /root/.docker $$HOME
date
echo build snapshot version
mvn -B --no-transfer-progress -Dmaven.repo.local=./_m2/repository/ -DskipITs deploy
date timeout: "8200s"
- name: google/cloud-sdk
entrypoint: "/bin/bash"
args:
- "-c"
- |
set -x
set -e
set -o pipefail
date
tar -cf - ./_m2/ | gsutil cp - gs://debezium-maven-repo/$REPO_NAME.tar
date
timeout: "8200s"