mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
40 lines
1.4 KiB
Bash
Executable File
40 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
###########################################################################
|
|
# before_install.sh
|
|
# ---------------------
|
|
# Date : March 2019
|
|
# Copyright : (C) 2019 by Denis Rouzaud
|
|
# Email : denis@opengis.ch
|
|
###########################################################################
|
|
# #
|
|
# This program is free software; you can redistribute it and/or modify #
|
|
# it under the terms of the GNU General Public License as published by #
|
|
# the Free Software Foundation; either version 2 of the License, or #
|
|
# (at your option) any later version. #
|
|
# #
|
|
###########################################################################
|
|
|
|
|
|
set -e
|
|
|
|
.ci/travis/scripts/echo_travis_var.sh
|
|
|
|
pushd .docker
|
|
|
|
|
|
|
|
echo "travis_fold:start:docker_build"
|
|
echo "${bold}Docker build deps${endbold}"
|
|
docker --version
|
|
|
|
docker pull "qgis/qgis3-build-deps:${DOCKER_TAG}" || true
|
|
docker build --cache-from "qgis/qgis3-build-deps:${DOCKER_TAG}" -t "qgis/qgis3-build-deps:${DOCKER_TAG}" -f ${DOCKER_BUILD_DEPS_FILE} .
|
|
echo "push to qgis/qgis3-build-deps:${DOCKER_TAG}"
|
|
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
|
docker push "qgis/qgis3-build-deps:${DOCKER_TAG}"
|
|
|
|
echo "travis_fold:end:docker_build"
|
|
|
|
|
|
popd
|