platform/common/scripts/docker_build.sh
Andrey Sobolev 2abef8b6ec
Fix docker build (#4906)
We should tag containers locally with git revision, so in case of concurrent builds using same docker, we not mark wrong containers with a new version.

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-03-08 23:09:38 +06:00

8 lines
120 B
Bash
Executable File

#!/bin/bash
version=$(git rev-parse HEAD)
echo "Building version: $version"
docker build -t "$1" -t "$1:$version" .