Update the Dockerfile to use the master firebase-tools, tweak scripts (#23279)
This commit is contained in:
parent
fbb01eabae
commit
9372f86149
@ -82,7 +82,7 @@ ENV PATH="$GRADLE_ROOT/bin:$PATH"
|
||||
ENV PATH="/usr/bin:${PATH}"
|
||||
RUN dpkg-query -L nodejs
|
||||
# Install Firebase
|
||||
RUN /usr/bin/npm install -g firebase-tools
|
||||
RUN /usr/bin/npm install -g git://github.com/firebase/firebase-tools.git
|
||||
|
||||
# Set locale to en_US
|
||||
RUN locale-gen en_US "en_US.UTF-8" && dpkg-reconfigure locales
|
||||
|
@ -3,6 +3,6 @@
|
||||
TAG="${CIRRUS_TAG:-latest}"
|
||||
|
||||
# pull to make sure we are not rebuilding for nothing
|
||||
docker pull "gcr.io/flutter-cirrus/build-flutter-image:$TAG"
|
||||
sudo docker pull "gcr.io/flutter-cirrus/build-flutter-image:$TAG"
|
||||
|
||||
docker build --tag "gcr.io/flutter-cirrus/build-flutter-image:$TAG" .
|
||||
sudo docker build "$@" --tag "gcr.io/flutter-cirrus/build-flutter-image:$TAG" .
|
||||
|
@ -3,5 +3,5 @@
|
||||
if [[ -n "$CIRRUS_CI" && -n "$GCLOUD_CREDENTIALS" ]]; then
|
||||
echo "$GCLOUD_CREDENTIALS" | base64 --decode | docker login -u _json_key --password-stdin https://gcr.io
|
||||
else
|
||||
gcloud auth print-access-token | docker login -u oauth2accesstoken --password-stdin https://gcr.io
|
||||
fi
|
||||
gcloud auth print-access-token | sudo docker login -u oauth2accesstoken --password-stdin https://gcr.io
|
||||
fi
|
||||
|
@ -2,5 +2,5 @@
|
||||
|
||||
TAG="${CIRRUS_TAG:-latest}"
|
||||
|
||||
docker push "gcr.io/flutter-cirrus/build-flutter-image:$TAG"
|
||||
sudo docker push "gcr.io/flutter-cirrus/build-flutter-image:$TAG"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user