github.com/tilt-dev/tilt@v0.36.0/scripts/build-tilt-releaser.sh (about) 1 #!/bin/bash 2 # 3 # Build a Docker container with all the cross-compiling toolchains 4 # we need to do a release. Pre-populate it with a Go cache. 5 6 set -ex 7 8 DIR=$(dirname "$0") 9 cd "$DIR/.." 10 11 docker buildx build --push -t docker/tilt-releaser -f scripts/release.Dockerfile scripts 12 13 # add some bash code to pull the image and pull out the tag 14 docker pull docker/tilt-releaser 15 DIGEST="$(docker inspect --format '{{.RepoDigests}}' docker/tilt-releaser | tr -d '[]')" 16 17 yq eval -i ".jobs.release-dry-run.docker[0].image = \"$DIGEST\"" .circleci/config.yml 18 yq eval -i ".jobs.release.docker[0].image = \"$DIGEST\"" .circleci/config.yml 19 yq eval -i ".image = \"$DIGEST\"" build.toast.yml