forked from firka/flutter
install goldctl in docker build (#46640)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
5d30c0970a
commit
7a13d8a0ce
@@ -3,6 +3,12 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
# Capture the directory this script resides in
|
||||
SCRIPT_DIRECTORY="$(dirname $(readlink -f "$0"))"
|
||||
|
||||
# Set context to flutter/dev
|
||||
CONTEXT="${SCRIPT_DIRECTORY}/../.."
|
||||
|
||||
TAG="${CIRRUS_TAG:-latest}"
|
||||
|
||||
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
|
||||
@@ -12,4 +18,7 @@ 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" .
|
||||
sudo docker build "$@" \
|
||||
--tag "gcr.io/flutter-cirrus/build-flutter-image:$TAG" \
|
||||
--file "$SCRIPT_DIRECTORY/Dockerfile" \
|
||||
"$CONTEXT"
|
||||
|
||||
Reference in New Issue
Block a user