github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/scripts/goreleaser.sh (about) 1 #!/bin/bash 2 # 3 # Run goreleaser in a Docker container with all the cross-compiling toolchains 4 # we need to do a release. 5 6 set -ex 7 8 if [[ "$GITHUB_TOKEN" == "" ]]; then 9 echo "Missing GITHUB_TOKEN" 10 exit 1 11 fi 12 13 DIR=$(dirname "$0") 14 cd "$DIR/.." 15 16 docker login 17 docker pull docker/tilt-releaser 18 mkdir -p ~/.cache/tilt/release/go-build 19 20 docker run --rm --privileged \ 21 -e GITHUB_TOKEN="$GITHUB_TOKEN" \ 22 -w /src/tilt \ 23 -v ~/.docker:/root/.docker \ 24 -v ~/.cache/tilt/release/go-build:/root/.cache/go-build \ 25 -v "$PWD:/src/tilt:delegated" \ 26 -v /var/run/docker.sock:/var/run/docker.sock \ 27 docker/tilt-releaser \ 28 --rm-dist