github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/scripts/update-codegen.sh (about) 1 #!/usr/bin/env bash 2 3 set -e 4 5 DIR=$(dirname "$0") 6 cd "$DIR/.." 7 8 9 # docker mounts don't work in our CI setup - just run the scripts directly 10 if [[ $CI == true ]]; then 11 # TODO - get this working in CI 12 # scripts/update-protobuf-helper.sh 13 14 export CODEGEN_UID=$(id -u) 15 export CODEGEN_GID=$(id -g) 16 scripts/update-codegen-helper.sh 17 exit 0 18 fi 19 20 docker build --load -t tilt-protobuf-helper -f scripts/protobuf-helper.dockerfile scripts 21 docker run --rm -v "$(pwd)":/go/src/github.com/tilt-dev/tilt \ 22 --entrypoint /go/src/github.com/tilt-dev/tilt/scripts/update-protobuf-helper.sh \ 23 tilt-protobuf-helper 24 25 docker run --rm -e "CODEGEN_UID=$(id -u)" -e "CODEGEN_GID=$(id -g)" -v "$(pwd)":/go/src/github.com/tilt-dev/tilt \ 26 --workdir /go/src/github.com/tilt-dev/tilt \ 27 --entrypoint ./scripts/update-codegen-helper.sh \ 28 golang:1.22