github.com/tilt-dev/tilt@v0.36.0/scripts/build-tilt-ci.sh (about) 1 #!/bin/bash 2 # 3 # Build a Docker CI container 4 5 set -ex 6 7 DIR=$(dirname "$0") 8 cd "$DIR/.." 9 10 docker buildx build --push --pull --platform linux/amd64 -t docker/tilt-ci -f .circleci/Dockerfile .circleci 11 12 # add some bash code to pull the image and pull out the tag 13 docker pull docker/tilt-ci 14 DIGEST="$(docker inspect --format '{{.RepoDigests}}' docker/tilt-ci | tr -d '[]')" 15 16 yq eval -i ".jobs.build-linux.docker[0].image = \"$DIGEST\"" .circleci/config.yml 17 yq eval -i ".jobs.check-docs.docker[0].image = \"$DIGEST\"" .circleci/config.yml