forked from p15670423/monkey
Deployments: fix the extraction of commit number in docker.sh
This commit is contained in:
parent
46ef9df1d2
commit
eedf4484bc
|
@ -15,6 +15,8 @@ setup_build_dir() {
|
|||
|
||||
copy_entrypoint_to_build_dir "$build_dir"
|
||||
|
||||
build_commit=$(git rev-parse --git-dir "$monkey_repo" --short HEAD)
|
||||
|
||||
copy_monkey_island_to_build_dir "$monkey_repo/monkey" "$build_dir"
|
||||
copy_server_config_to_build_dir "$build_dir"
|
||||
modify_deployment "$deployment_type" "$build_dir"
|
||||
|
@ -40,9 +42,9 @@ build_package() {
|
|||
pushd ./docker
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
version="v$(git rev-parse --short HEAD)"
|
||||
else
|
||||
version="v$version"
|
||||
else
|
||||
version="v$build_commit"
|
||||
fi
|
||||
|
||||
docker_image_name="guardicore/monkey-island:$version"
|
||||
|
|
Loading…
Reference in New Issue