speckle-server/.circleci/build.sh

20 строки
760 B
Bash
Исходник Обычный вид История

2021-03-18 15:05:43 +03:00
#!/bin/bash
set -eo pipefail
2021-03-18 15:05:43 +03:00
2022-01-14 16:28:48 +03:00
# enables building the test-deployment container with the same script
# defaults to packages for minimal intervention in the ci config
FOLDER="${FOLDER:-packages}"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# shellcheck disable=SC1090,SC1091
source "${SCRIPT_DIR}/common.sh"
2022-01-13 21:51:56 +03:00
echo "Building image: ${DOCKER_IMAGE_TAG}:${IMAGE_VERSION_TAG}"
2021-03-18 15:05:43 +03:00
export DOCKER_BUILDKIT=1
docker build --build-arg SPECKLE_SERVER_VERSION="${IMAGE_VERSION_TAG}" --tag "${DOCKER_IMAGE_TAG}:${IMAGE_VERSION_TAG}" --file "${FOLDER}/${SPECKLE_SERVER_PACKAGE}/Dockerfile" .
2021-03-18 15:05:43 +03:00
echo " Saving image: ${DOCKER_FILE_NAME}"
docker save --output "/tmp/ci/workspace/${DOCKER_FILE_NAME}" "${DOCKER_IMAGE_TAG}:${IMAGE_VERSION_TAG}"