Skip to content

Commit b227908

Browse files
authored
ci: sample build in Cloud Build (#1606)
b/322966824 Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/java-pubsublite/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> ☕️ If you write sample code, please follow the [samples format]( https://togithub.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
1 parent 16a49bb commit b227908

File tree

2 files changed

+36
-3
lines changed

2 files changed

+36
-3
lines changed

.cloudbuild/samples_build.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
steps:
2+
- name: gcr.io/cloud-devrel-public-resources/java8
3+
entrypoint: ls
4+
args: [
5+
'-alt',
6+
]
7+
- name: gcr.io/cloud-devrel-public-resources/java8
8+
entrypoint: curl
9+
args: [
10+
'--header',
11+
'Metadata-Flavor: Google',
12+
'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/email'
13+
]
14+
- name: gcr.io/cloud-devrel-public-resources/java8
15+
entrypoint: pwd
16+
- name: gcr.io/cloud-devrel-public-resources/java8
17+
entrypoint: bash
18+
args: [
19+
'.kokoro/build.sh'
20+
]
21+
env:
22+
- 'JOB_TYPE=samples'
23+
- 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample'
24+
- 'GOOGLE_CLOUD_PROJECT_NUMBER=615621127317'
25+
- name: gcr.io/cloud-devrel-public-resources/java8
26+
entrypoint: echo
27+
args: [
28+
'Sample job succeeded',
29+
]
30+
timeout: 3600s
31+
options:
32+
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET
33+

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ If you are using Maven, add this to your pom.xml file:
3333
If you are using Gradle without BOM, add this to your dependencies:
3434

3535
```Groovy
36-
implementation 'com.google.cloud:google-cloud-pubsublite:1.12.22'
36+
implementation 'com.google.cloud:google-cloud-pubsublite:1.13.0'
3737
```
3838

3939
If you are using SBT, add this to your dependencies:
4040

4141
```Scala
42-
libraryDependencies += "com.google.cloud" % "google-cloud-pubsublite" % "1.12.22"
42+
libraryDependencies += "com.google.cloud" % "google-cloud-pubsublite" % "1.13.0"
4343
```
4444
<!-- {x-version-update-end} -->
4545

@@ -483,7 +483,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
483483
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-pubsublite/java11.html
484484
[stability-image]: https://img.shields.io/badge/stability-stable-green
485485
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsublite.svg
486-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsublite/1.12.22
486+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsublite/1.13.0
487487
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
488488
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
489489
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

0 commit comments

Comments
 (0)