Skip to content

Instantly share code, notes, and snippets.

@cristianovagos
Created September 26, 2019 11:37
Show Gist options
  • Save cristianovagos/aa8245b63cd09c74cc39ffc41a24abf7 to your computer and use it in GitHub Desktop.
Save cristianovagos/aa8245b63cd09c74cc39ffc41a24abf7 to your computer and use it in GitHub Desktop.
GitLab CI/CD file for Protobuf Golang/Java generation
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