docker-images: update script for zoekt versions (#12140)

This commit is contained in:
Keegan Carruthers-Smith 2020-07-14 08:01:03 +02:00 committed by GitHub
parent daecb954a3
commit f6ca985c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
# The images are tagged using the same pseudo-versions as go mod, so we
# extract the version from our go.mod
version=$(go mod edit -print | awk '/sourcegraph\/zoekt/ {print substr($4, 2)}')
version=$(go mod edit -print | awk '/sourcegraph\/zoekt/ {print substr($5, 2)}')
docker pull index.docker.io/sourcegraph/zoekt-webserver:"$version"
docker tag index.docker.io/sourcegraph/zoekt-webserver:"$version" "$IMAGE"

View File

@ -10,7 +10,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")"
# The images are tagged using the same pseudo-versions as go mod, so we
# extract the version from our go.mod
version=$(go mod edit -print | awk '/sourcegraph\/zoekt/ {print substr($4, 2)}')
version=$(go mod edit -print | awk '/sourcegraph\/zoekt/ {print substr($5, 2)}')
docker pull index.docker.io/sourcegraph/zoekt-indexserver:"$version"
docker tag index.docker.io/sourcegraph/zoekt-indexserver:"$version" "$IMAGE"