ligo/scripts/distribution/generic/build.sh

19 lines
525 B
Bash
Raw Normal View History

#!/bin/sh
set -e
set -x
dockerfile_name="build"
# Generic dockerfile
dockerfile="./docker/distribution/generic/build.Dockerfile"
. ./scripts/distribution/generic/parameters.sh
echo "Building LIGO for $target"
echo "Using Dockerfile: $dockerfile"
echo "Tagging as: $tag_build\n"
2020-05-06 00:25:46 +04:00
docker build \
--build-arg ci_job_id="${CI_JOB_ID}" \
--build-arg ci_commit_sha="${CI_COMMIT_SHA}" \
--build-arg commit_date="${COMMIT_DATE}" \
--build-arg target="$target" \
-t "$tag_build" -f "$dockerfile" .