Closed Sieboldianus closed 4 years ago
Finally solved it. This issue can be closed - maybe it'll help some people setup proto-gen-doc in gitlab ci. This is my final gitlabci.yml
stages:
- build
- deploy
build-structure:
stage: build
image:
name: pseudomuto/protoc-gen-doc
# disable entrypoint so we can use git clone etc.
entrypoint: [""]
script:
- apt-get -q -y update && apt-get -q -y install git
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab..../protobuf.git/
- cp resources/proto-markdown-tmpl/markdown_lbsn.tmpl protos/
- cp protobuf/lbsnstructure/* protos/
- bash /entrypoint.sh --doc_out=out/ --doc_opt=protos/markdown_lbsn.tmpl,structure.md social.proto topical.proto spatial.proto temporal.proto interlinkage.proto
artifacts:
paths:
- /out/structure.md
only:
- master
First, great project! I got my conversion from proto to markdown working locally with the
docker run
.Now I am trying to set it up in our Gitlab CI job, and there's a problem I cannot figure out:
This line:
produces the following output:
Why is the flag not defined? It states otherwise in the recommendations below. I tried different versions of these commands without success. I am using the official image. Here's my gitlab ci: