kythe.io@v0.0.68-0.20240422202219-7225dbc01741/kythe/extractors/bazel/gcb.yaml (about) 1 # Cloud Build configuration to build and push docker image for bazel extraction. 2 # 3 # REV=v0.99.9 4 # # gcloud auth login 5 # gcloud config set project kythe-public 6 # # gcloud auth configure-docker 7 # gcloud builds submit --config kythe/extractors/bazel/gcb.yaml \ 8 # --substitutions=_COMMIT=${REV} 9 # 10 11 steps: 12 - name: gcr.io/cloud-builders/git 13 id: clone 14 args: 15 - clone 16 - '--recurse-submodules' 17 - ${_REPO} 18 - . 19 dir: /workspace/code 20 - name: gcr.io/cloud-builders/git 21 id: checkout 22 args: 23 - checkout 24 - '--recurse-submodules' 25 - ${_COMMIT} 26 dir: /workspace/code 27 waitFor: 28 - clone 29 - name: gcr.io/kythe-repo/bazelisk-builder-client 30 id: bazel-release 31 args: 32 - bazel 33 - '--output_base=/workspace/code/bzob' 34 - build 35 - '--config=remote' 36 - '-c' 37 - opt 38 - '--stamp' 39 - '//kythe/extractors/bazel:stage' 40 dir: /workspace/code 41 waitFor: 42 - checkout 43 - name: gcr.io/cloud-builders/docker 44 id: docker-build 45 args: 46 - build 47 - '-t' 48 - gcr.io/kythe-public/bazel-extractor:latest 49 - . 50 dir: /workspace/code/bazel-bin/kythe/extractors/bazel/stage.done.ctx 51 waitFor: 52 - bazel-release 53 substitutions: 54 _REPO: 'https://github.com/kythe/kythe' 55 _COMMIT: master 56 images: ['gcr.io/kythe-public/bazel-extractor:latest'] 57 # Use a long timeout as some builds, particularly LLVM updates, can 58 # exceed 30 minutes. 59 timeout: 2700s 60 options: 61 # The increased scheduling time is more than offset by the substantially improved test runtime. 62 machineType: E2_HIGHCPU_8