blob: 3b5901de8aa2789edefb89b2cad9d5443a669e77 [file] [log] [blame]
#!/bin/bash
TAG="${CIRRUS_TAG:-latest}"
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
# See https://docs.docker.com/engine/reference/commandline/tag/
TAG=${TAG/+/-}
# pull to make sure we are not rebuilding for nothing
sudo docker pull "gcr.io/flutter-cirrus/build-flutter-image:$TAG"
sudo docker build "$@" --tag "gcr.io/flutter-cirrus/build-flutter-image:$TAG" .