Created
September 26, 2019 11:37
-
-
Save cristianovagos/aa8245b63cd09c74cc39ffc41a24abf7 to your computer and use it in GitHub Desktop.
GitLab CI/CD file for Protobuf Golang/Java generation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- build | |
variables: | |
GRADLE_OPTS: "-Dorg.gradle.daemon=false" | |
build:go: | |
stage: build | |
image: | |
name: namely/protoc-all | |
entrypoint: [""] | |
script: | |
- entrypoint.sh -f todos.proto -l go -o ./genproto --with-gateway | |
artifacts: | |
paths: | |
- ./genproto/go | |
expire_in: 1 week | |
build:java: | |
stage: build | |
image: gradle | |
script: | |
- gradle wrapper | |
- ./gradlew build | |
artifacts: | |
paths: | |
- ./build/libs | |
expire_in: 1 week |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment