mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
11 lines
360 B
Bash
11 lines
360 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
# We check only our code, that's why we skip contrib
|
||
|
GIT_ROOT=$(git rev-parse --show-cdup)
|
||
|
GIT_ROOT=${GIT_ROOT:-.}
|
||
|
VERSION=$(sed -e '1 s/^v//; 1 s/-.*//p; d' "$GIT_ROOT"/utils/list-versions/version_date.tsv)
|
||
|
|
||
|
find "$GIT_ROOT/docker/server/" -name 'Dockerfile.*' -print0 | xargs -0 sed -i "/^ARG VERSION=/ s/^.*$/ARG VERSION=\"$VERSION\"/"
|