mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 19:44:59 +03:00
2abef8b6ec
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>
8 lines
120 B
Bash
Executable File
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" .
|